FastJson - How to convert Java object to JSON and JSON to Java object
In this section, we will show you h ow to convert Java object to JSON and JSON to Java object with FastJson. Note Fastjson is a Java library that can be used to convert Java Objects into their JSON representation. It can also be used to convert a JSON string to an equivalent Java object. Fastjson can work with arbitrary Java objects including pre-existing objects that you do not have source-code of. Note JSON (JavaScript Object Notation) is a lightweight format that is used for data interchanging. JSON is built on two structures: A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array. An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence. 1. Download FastJson < dependency > < groupId >com.alibaba</ groupId > < artifactId >fastjson</ artifactId > < version >2.0.19</ versio...