{title:'JSON Methodology'}
The JSON data type produced depends on the Java object type being serialized.
POJO type | JSON type | Example | Serialized form |
---|---|---|---|
String | String | ||
Number | Number | ||
Boolean | Boolean | ||
Null | Null | ||
Beans with properties of any type on this list | Object | ||
Maps with values of any type on this list | Object | ||
Collections and arrays of any type on this list | Array |
In addition, swaps can be used to convert non-serializable POJOs into serializable forms, such as converting