-
- All Implemented Interfaces:
public class JsonConverterUtility class for JSON serialization
-
-
Field Summary
Fields Modifier and Type Field Description public final static JsonConverterINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends Any> TfromJson(String json)Serializes an object to JSON string. final ObjectfromJson(String json, Class<?> type)De-serializes an object from JSON string. final Map<String, ?>toMap(String json)De-serializes JSON string to a Map. final StringtoJson(Object obj)Serializes an object to JSON string. final JSONObjecttoJsonObject(Object $self)-
-
Method Detail
-
fromJson
final Object fromJson(String json, Class<?> type)
De-serializes an object from JSON string.
-
toJsonObject
final JSONObject toJsonObject(Object $self)
-
-
-
-