在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:jonfhancock/JsonToJava开源软件地址:https://github.com/jonfhancock/JsonToJava开源编程语言:Java 57.0%开源软件介绍:Json2JavaI was fed up with writing Java classes to mirror json models. So I wrote this Java app to automate the process. Give it: What this tool can do right now:
It will create the folder structure for the package you provide, then it will read the json at the url you provide, and output java classes into a zip file. The easiest way to actuall use this is to go to http://jsontojava.appspot.com/ When run from the commandline, it looks like this: java -jar JsonToJava.jar -url http://example.com/folder.json -package com.example.api.model -class Folder -p -g Each class will implement Parcelable for easy passing of information in Android (optional). Each class will have a default empty constructor. The members of each class will follow Android naming conventions with an "m" prefix and camel case. Each member will have a corresponding static final String that relates it to it's json counterpart Each member will have a @SerializedName annotation for very easy Gson parsing. (optional) If a member called "mId" or "mUniqueId" is found, then equals and hashcode will be overridden so comparisons are made on the id. What I want this tool to do in the future in no particular order
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论