1 JSON
Class Ax.json
Class used to transform any Java object to JSON and vice versa, using GSON library.
Gson (also known as Google Gson) is an open-source Java library to serialize and deserialize Java objects to (and from) JSON.
Constructor Summary
Method Summary
Constructor Detail
Ax.json.JSJSON
-
Ax.json.JSJSON()
Method Detail
Ax.json.fromJSON
-
object Ax.json.fromJSON( string json )
- Info:
-
Parses a JSON into a java MAP. Much faster than eval and can handle large JSON objects. - Parameters:
- json -
- Returns:
- object
Ax.json.toJSON
-
string Ax.json.toJSON( object obj )
- Info:
-
Transforms any Java object to it's json representation using reflection via Gson. - Parameters:
- obj - object to transform
- Returns:
- string