# easyjson
**Repository Path**: h_1_2/easyjson
## Basic Information
- **Project Name**: easyjson
- **Description**: Provides a unified JSON access API, you can adapter any JSON library to Gson, Jackson, FastJson with easyjson
- **Primary Language**: Java
- **License**: LGPL-3.0
- **Default Branch**: master
- **Homepage**: https://gitee.com/fangjinuo/easyjson
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 7
- **Created**: 2020-02-08
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
[](http://www.json.org/)
[](https://github.com/fangjinuo/sqlhelper/blob/master/LICENSE)
[](https://travis-ci.com/fangjinuo/easyjson)
[](https://www.codacy.com/manual/fs1194361820/easyjson?utm_source=github.com&utm_medium=referral&utm_content=fangjinuo/easyjson&utm_campaign=Badge_Grade)
[](https://github.com/google/gson)
[](https://github.com/alibaba/fastjson)
[](https://github.com/FasterXML/jackson)
[](https://www.oracle.com/technetwork/java/javase/downloads/index.html)
[Github](https://github.com/fangjinuo/easyjson): https://github.com/fangjinuo/easyjson
[Gitee](https://gitee.com/fangjinuo/easyjson): https://gitee.com/fangjinuo/easyjson
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson%20AND%20v:2.1.0)
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson%20AND%20v:2.0.5)
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson)
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson)
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson)
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson)
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson)
[](https://search.maven.org/search?q=g:com.github.fangjinuo.easyjson)
# easyjson
Provides a unified JSON access API, you can adapter any JSON library to Gson, Jackson, FastJson with easyjson.
## Modules
1. **easyjson-gson**: use it, you can adapter any json library to Google gson.
2. **easyjson-jackson**: use it, you can adapter any json library to jackson. If you working in a spring application, this is recommend.
3. **easyjson-fastjson**: use it, you can adapter any json library to Alibaba fastjson.
4. **easyjson-core**: the core module. use it you can adapter any json library to easyjson,the other wary round, you can adapter any a json library to any json library.
5. **XXXX-to-easyjson**: adapter some JSON library (android-json, json-simple, json-lib, ... etc) to easyjson (gson, jackson)
7. **easyjson-examples**: test cases
## Usage
### Key Features
1. Supports **gson**, **fastjson**, **jackson**, **Progsbase** **...**
2. Supports tree model, stream model
3. Control whether serialize null
4. Convert ON|OFF, 1|0 to Boolean
5. Serialize or deserialize a Enum based on custom field
6. Serialize or deserialize a Date using specified pattern | date format
7. Supports custom exclusion rule, for examples: @Ignore, transient, specified modifier ...
8. Get the JSONBuilder with zero configuration
9. Switch the underlying implement without any code change
10. Supports JDK 1.6+
### Quick Start
#### installation
easyjson facade |
JSON Implementation |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>easyjson-core</artifactId>
<version>${version}/version>
</dependency>
|
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>easyjson-gson</artifactId>
<version>${version}/version>
</dependency>
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>easyjson-jackson</artifactId>
<version>${version}/version>
</dependency>
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>easyjson-fastjson</artifactId>
<version>${version}/version>
</dependency>
|
JSON Library |
Maven |
version |
Adapter |
Android json |
<dependency>
<groupId>com.vaadin.external.google</groupId>
<artifactId>android-json</artifactId>
<version>0.0.20131108.vaadin1</version>
</dependency>
|
0.0.20131108.vaadin |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>android-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
fastjson |
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>fastjson</artifactId>
<version>1.2.58</version>
</dependency>
|
1.2.58 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>fastjson-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
json-lib |
<dependency>
<groupId>com.hynnet</groupId>
<artifactId>json-lib</artifactId>
<version>2.4</version>
</dependency>
|
2.4 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>jsonlib-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
json-smart |
<dependency>
<groupId>net.minidev</groupId>
<artifactId>json-smart</artifactId>
<version>2.3</version>
</dependency>
|
2.3 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>jsonsmart-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
Eclipse minimal-json |
<dependency>
<groupId>com.eclipsesource.minimal-json</groupId>
<artifactId>minimal-json</artifactId>
<version>0.9.5</version>
</dependency>
|
0.9.5 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>minimaljson-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
org.json |
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20180813</version>
</dependency>
|
20180813 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>orgjson-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
Progsbase JSON |
<dependency>
<groupId>com.progsbase.libraries</groupId>
<artifactId>JSON</artifactId>
<version>0.3.9</version>
</dependency>
|
0.3.9 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>progsbase-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
json-simple |
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
</dependency>
|
1.1.1 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>simplejson-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
Boon-json |
<dependency>
<groupId>com.github.advantageous</groupId>
<artifactId>boon-json</artifactId>
<version>0.5.7-RC1</version>
</dependency>
|
0.5.7-RC1 |
<dependency>
<groupId>com.github.fangjinuo.easyjson</groupId>
<artifactId>boonjson-to-easyjson</artifactId>
<version>${version}</version>
</dependency>
|
#### How to:
***@see*** easyjson-examples testcases
### Contact:
如果遇到问题,可以在Github, Gitee 上提出issue, 也可以在QQ群里询问。
QQ Group: 750929088
