diff --git a/README.md b/README.md index 1dccaa0..f70b503 100755 --- a/README.md +++ b/README.md @@ -1,21 +1,46 @@ -![JSONConverter logo](/Screenshots/JSONConverterLogo.jpg) +![JSONConverter logo](/Screenshots/logo.jpg) English | [简体中文](./README.zh-CN.md) JSONConverter ============ -JSONConverter is a desktop application for MacOS written in Swift. -Using JSONConverter you will be able to: -* Convert any valid JSON object to a class of one of the currently supported languages. -* Format JSON and display JSON with rich text, user can custom choose style by Highlightr, supports [185 languages and comes with 89 styles](https://highlightjs.org/static/demo/) -* Preview and export the generated rich content -* Change the root class name. -* Set a class name prefix for the generated classes. -* Custom file header include author/date etc. -* automatic hump conversion -* Support i18n(English/Chinese) -* more smart and safe -... +JSONConverter is an auxiliary tool developed for iOS/Flutter/Android/Server on MAC. It can quickly format JSON data and convert and generate corresponding model class attributes. It currently supports Java/Objective-C/Dart/Golang/Swift and popular first Three-party libraries: [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON), [HandyJSON](https://github.com/alibaba/HandyJSON), [ObjectMapper](https://github.com/Hearst -DD/ObjectMapper), you can flexibly choose to build Class/Struct, save the trouble of typing the model by hand, and greatly improve the development efficiency. + +Why use JSONConverter +====== + +| Features | JSONConverter | JSONExport | +| ------ | ------ | ------ | +| Custom configuration | powerful | support | +| Response | promptly | Recently 2019 | +| Open source or free | ✅ | ✅ | +| Dark mode | ✅ | ❌ | +| Rich text display | ✅ | ❌ | +| Automatic hump | ✅ | ❌ | +| Class name anti-weight | ✅ | ❌ | +| Type inference | ✅ | ❌ | +| Integrity check | ✅ | ❌ | +| JSON verification | ✅ | ✅ | +| Class/Struct | ✅ | ❌ | +| Java | ✅ | ✅ | +| Swift | ✅ | ✅ | +| Objective-C | ✅ | ✅ | +| Flutter | ✅ | ❌ | +| Golang | ✅ | ❌ | +| ... | | | + + +Features +======= +* Quickly convert JSON data to generate model classes and attributes corresponding to the supported languages. +* Format rich text to display JSON data, support [185 languages ​​and 89 styles](https://highlightjs.org/static/demo/) +* Preview and export the generated corresponding rich text model class +* Configure the root class name +* Configuration class prefix +* Custom class file prefix +* Automatic conversion of underscore hump +* globalization +* Array model attribute integrity check Currently supported languages ============================= @@ -27,16 +52,17 @@ Currently supported languages - 2. Objective-C - 3. Flutter - 4. Java +- 5. Golang - if you have other needs, you can let us know by [issues](https://github.com/DevYao/JSONConverter/issues) Screenshots ======================== -![1.png](/Screenshots/01.png) -![2.png](/Screenshots/02.png) -![3.png](/Screenshots/03.png) -![4.png](/Screenshots/04.png) -![5.png](/Screenshots/05.png) -![6.png](/Screenshots/06.png) +![objc.png](/Screenshots/objc.png) +![swift.png](/Screenshots/swift.png) +![swiftyjson.png](/Screenshots/swiftyjson.png) +![objectmapper.png](/Screenshots/objectmapper.png) +![flutter.png](/Screenshots/flutter.png) +![golang.png](/Screenshots/golang.png) Installation ============ @@ -45,17 +71,18 @@ Installation To Do ===== +* HTTP Request * Support C Struct * Support C++ Class/Struct * Support Kotlin Class/Struct -Flutter model instruction links +Flutter instructions ======================== * [json_serializable](https://github.com/dart-lang/json_serializable) Final ========== -* The application still in its early stage. Please report any issue so I can improve it. +* The application still in its early stage. Please report any issue so I can improve it, If you like it, please give a star to encourage a wave 😁 License ======================== diff --git a/README.zh-CN.md b/README.zh-CN.md index 482a0ea..de114fe 100755 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,14 +1,36 @@ -![JSONConverter logo](/Screenshots/JSONConverterLogo.jpg) +![JSONConverter logo](/Screenshots/logo.jpg) 简体中文 | [English](./README.md) JSONConverter -========== - JSONConverter是MAC上iOS/Flutter开发的辅助工具,可以快速的格式化JSON数据并转换生成对应的模型类属性,目前支持/Java/Objective-C/Flutter/Swift及目前流行的第三方库: [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON)、[HandyJSON](https://github.com/alibaba/HandyJSON),[ObjectMapper](https://github.com/Hearst-DD/ObjectMapper),可以灵活选择构建class/struct,并支持配置类名前缀等,省去手敲模型的麻烦,极大提高开发效率。 +============= + JSONConverter是MAC上iOS/Flutter/Android/Server等开发的辅助工具,可以快速的格式化JSON数据并转换生成对应的模型类属性,目前支持Java/Objective-C/Dart/Golang/Swift及流行的第三方库: [SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON)、[HandyJSON](https://github.com/alibaba/HandyJSON),[ObjectMapper](https://github.com/Hearst-DD/ObjectMapper),可以灵活选择构建Class/Struct,省去手敲模型的麻烦,极大提高开发效率。 +应用比较 +====== + +| 特性 | JSONConverter | JSONExport | +| ------ | ------ | ------ | +| 自定义配置 | 丰富 | 一般 | +| 问题响应 | 响应及时 | 最近维护2019年 | +| 开源或免费 | ✅ | ✅ | +| 暗黑模式切换 | ✅ | ❌ | +| 富文本展示 | ✅ | ❌ | +| 自动驼峰 | ✅ | ❌ | +| 类名防重 | ✅ | ❌ | +| 类型推导 | ✅ | ❌ | +| 完整性检查 | ✅ | ❌ | +| JSON校验 | ✅ | ✅ | +| Class/Struct | ✅ | ❌ | +| Java | ✅ | ✅ | +| Swift | ✅ | ✅ | +| Objective-C | ✅ | ✅ | +| Flutter | ✅ | ❌ | +| Golang | ✅ | ❌ | +| ... | | | 功能介绍 -============ +======= * 快速的把JSON数据转换生成对应支持的语言的模型类和属性. * 格式化富文本展示JSON数据,支持[185种语言和89种样式](https://highlightjs.org/static/demo/) * 预览并导出生成的对应富文本模型类 @@ -17,6 +39,8 @@ JSONConverter * 自定义类文件前缀 * 下划线驼峰自动转换 * 国际化 +* 数组模型属性完整性检查 + 当前支持的语言 ============ @@ -28,34 +52,36 @@ JSONConverter - 2. Objective-C - 3. Flutter - 4. Java +- 5. Golang - 如果你还有其他需要,可以通过[issues](https://github.com/DevYao/JSONConverter/issues)告诉我 -应用截图 -======================== -![1.png](/Screenshots/01.png) -![2.png](/Screenshots/02.png) -![3.png](/Screenshots/03.png) -![4.png](/Screenshots/04.png) -![5.png](/Screenshots/05.png) -![6.png](/Screenshots/06.png) +应用预览 +====== +![objc.png](/Screenshots/objc.png) +![swift.png](/Screenshots/swift.png) +![swiftyjson.png](/Screenshots/swiftyjson.png) +![objectmapper.png](/Screenshots/objectmapper.png) +![flutter.png](/Screenshots/flutter.png) +![golang.png](/Screenshots/golang.png) 安装说明 -============ +====== * 使用Xcode Build,拷贝JSONConverter.app 至 Application 文件夹 * 直接下载 [Release Packages](https://github.com/DevYao/JSONConverter/releases) 开发计划 -================== +====== +* 实现HTTP请求 * 支持 C Struct 转换 * 支持 C++ Struct/Class 转换 * 支持 Kotlin 转换 -Flutter 模型使用说明 -======================== +Flutter 说明 +=========== 因为Flutter JSON转换功能是配合[json_serializable](https://github.com/dart-lang/json_serializable)使用,具体的使用说明可以查看以下说明 * [Flutter-快速完成JosnModel的转换](https://www.jianshu.com/p/8e22a383bc4b) * [JSON和序列化](https://flutterchina.club/json/) 声明 -======================== -因为,并没有在项目中实际使用过[SwiftyJSON](https://github.com/SwiftyJSON/SwiftyJSON)、[ObjectMapper](https://github.com/Hearst-DD/ObjectMapper)等库,所以并不知道初始化方法构建的是否合理,如果你有更好的建议,欢迎留言,大家共同进步,谢谢!,如果喜欢,请给一个star,鼓励一波,哈哈哈哈😁 +=== +因为,有些语言或框架并没有实际使用过,所以并不知道模型构建的是否合理,如果你有更好的建议,欢迎提PR/Issues,大家共同进步,谢谢!,如果喜欢,请给一个star,鼓励一波,哈哈哈哈😁 diff --git a/Screenshots/01.png b/Screenshots/01.png deleted file mode 100644 index d95dc18..0000000 Binary files a/Screenshots/01.png and /dev/null differ diff --git a/Screenshots/02.png b/Screenshots/02.png deleted file mode 100644 index e053dcc..0000000 Binary files a/Screenshots/02.png and /dev/null differ diff --git a/Screenshots/03.png b/Screenshots/03.png deleted file mode 100644 index 48bd740..0000000 Binary files a/Screenshots/03.png and /dev/null differ diff --git a/Screenshots/04.png b/Screenshots/04.png deleted file mode 100644 index 8cd1f85..0000000 Binary files a/Screenshots/04.png and /dev/null differ diff --git a/Screenshots/05.png b/Screenshots/05.png deleted file mode 100644 index a2e81f0..0000000 Binary files a/Screenshots/05.png and /dev/null differ diff --git a/Screenshots/06.png b/Screenshots/06.png deleted file mode 100644 index 1886679..0000000 Binary files a/Screenshots/06.png and /dev/null differ diff --git a/Screenshots/flutter.png b/Screenshots/flutter.png new file mode 100644 index 0000000..e0a264d Binary files /dev/null and b/Screenshots/flutter.png differ diff --git a/Screenshots/golang.png b/Screenshots/golang.png new file mode 100644 index 0000000..934860f Binary files /dev/null and b/Screenshots/golang.png differ diff --git a/Screenshots/JSONConverterLogo.jpg b/Screenshots/logo.jpg similarity index 100% rename from Screenshots/JSONConverterLogo.jpg rename to Screenshots/logo.jpg diff --git a/Screenshots/objc.png b/Screenshots/objc.png new file mode 100644 index 0000000..6f562a4 Binary files /dev/null and b/Screenshots/objc.png differ diff --git a/Screenshots/objectmapper.png b/Screenshots/objectmapper.png new file mode 100644 index 0000000..8a955ab Binary files /dev/null and b/Screenshots/objectmapper.png differ diff --git a/Screenshots/swift.png b/Screenshots/swift.png new file mode 100644 index 0000000..1f2ac84 Binary files /dev/null and b/Screenshots/swift.png differ diff --git a/Screenshots/swiftyjson.png b/Screenshots/swiftyjson.png new file mode 100644 index 0000000..7bc19be Binary files /dev/null and b/Screenshots/swiftyjson.png differ