Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

camel Case format not work #405

Open
Eiffelyk opened this issue Nov 7, 2022 · 2 comments
Open

camel Case format not work #405

Eiffelyk opened this issue Nov 7, 2022 · 2 comments

Comments

@Eiffelyk
Copy link

Eiffelyk commented Nov 7, 2022

I uninstalled and restored the plugin, using all the default Settings. Check the camel Case switch in the Settings is enable, which is on by default. The annotation format is also Gson by default. Generate the Bean without changing anything, and find that the properties in the Bean are still the same as the keys in json, without being converted to the camel Case format.

I use the Android Studio Dolphin | 2021.3.1 Patch 1

Build #AI-213.7172.25.2113.9123335, built on September 30, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.0
Memory: 2048M
Cores: 16

Non-Bundled Plugins:
wu.seal.tool.jsontokotlin (3.7.4)
com.jaeger.findviewbyme (1.4.3)
ink.organics.pojo2json (1.2.5)
com.intellij.ideolog (203.0.30.0)
com.robohorse.robopojogenerator (2.3.8)
com.github.copilot (1.1.35.2063)
Dart (213.7433)
cn.yiiguxing.plugin.translate (3.3.5)
io.flutter (71.0.3)
com.jetbrains.kmm (0.3.4(213-1.7.11-357-IJ)-241)

my jsonFile like this
{ "whatsapp": "whatsapp:+0806", "linkloan": "www32.142.175", "linloantest": "ni-v4.117.234.851" }

@wuseal
Copy link
Owner

wuseal commented Nov 7, 2022

@Eiffelyk Hello, the plugin can't know how to convert your demo JSON into camel case as your demo JSON without any split character.
if you using the next JSON, I think it will work

{ "whats_app": "whatsapp:+0806", "link_loan": "www32.142.175", "lin_loan_test": "ni-v4.117.234.851" }

@Eiffelyk
Copy link
Author

Eiffelyk commented Nov 7, 2022

Thank you, I get it,I misunderstood this function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants