Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zzz40500/GsonFormat
根据Gson库使用的要求,将JSONObject格式的String 解析成实体
https://github.com/zzz40500/GsonFormat
gsonformat ide jetbrains
Last synced: 6 days ago
JSON representation
根据Gson库使用的要求,将JSONObject格式的String 解析成实体
- Host: GitHub
- URL: https://github.com/zzz40500/GsonFormat
- Owner: zzz40500
- License: apache-2.0
- Created: 2014-10-31T14:16:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2021-01-28T03:51:32.000Z (almost 4 years ago)
- Last Synced: 2024-08-02T09:28:51.247Z (3 months ago)
- Topics: gsonformat, ide, jetbrains
- Language: Java
- Size: 4.02 MB
- Stars: 3,168
- Watchers: 114
- Forks: 572
- Open Issues: 66
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-tools - GsonFormat - Quickly to convert a JSON string to an entity class (Intellij Plugin)
- awesome-android-tips - GsonFormat
README
GsonFormat
------
[jetbrains](https://plugins.jetbrains.com/plugin/7654?pr=androidstudio)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-GsonFormat-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/1896)
[swift](https://github.com/EnjoySR/ESJsonFormat-Xcode)
[Json Annotation](https://github.com/tianzhijiexian/JsonAnnotation)
[中文Readme](README_CN.md)This is a plugin you can generate Json model from Json String.
Please do aware **This Plugin is only for Android Studio and IntelliJ IDEA**.## Install
- Using IDE built-in plugin system on Windows:
- File > Settings > Plugins > Browse repositories... > Search for "GsonFormat" > Install Plugin
- Using IDE built-in plugin system on MacOs:
- Preferences > Settings > Plugins > Browse repositories... > Search for "GsonFormat" > Install Plugin
- Manually:
- Download the [latest release](https://github.com/zzz40500/GsonFormat/releases/latest) and install it manually using Preferences > Plugins > Install plugin from disk...
- From official jetbrains store from [download](https://plugins.jetbrains.com/plugin/7654?pr=androidstudio)
Restart IDE.## Usage
### Use IDE menu![Generate.png](http://upload-images.jianshu.io/upload_images/166866-2c5168c72b7155ba.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
### Use hotkeyDefault **Option + s**(Mac), **Alt + s** (win)
You can change the hotkey via:
![修改快捷键.png](http://upload-images.jianshu.io/upload_images/166866-f9e20ca0ad7b9ae4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)## Demo picture
![gsonFormat.gif](http://upload-images.jianshu.io/upload_images/166866-ff9dc336af72d7d7.gif?imageMogr2/auto-orient/strip)
## Version Infov1.2.2
>
* Supports field type changes.
* Supports shortcut to open GsonFormat, default option + s (mac), alt + s (win)
* Support for field name changes.
* Support to add the prefix field.
* Support for multiple conversion libraries (Gson, Jackjson, FastJson, LoganSquare).
* Support for private and public modes.
* Supports filtering of superclass into existing fields.## License
Copyright 2014 The GsonFormat Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.