Package io.flutter.plugin.common
Class JSONUtil
- java.lang.Object
-
- io.flutter.plugin.common.JSONUtil
-
public class JSONUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Object
unwrap(Object o)
Convert the Json java representation to Java objects.static Object
wrap(Object o)
Backport ofJSONObject.wrap(Object)
for use on pre-KitKat systems.
-
-
-
Method Detail
-
unwrap
public static Object unwrap(Object o)
Convert the Json java representation to Java objects. Particularly used for converting JSONArray and JSONObject to Lists and Maps.
-
wrap
public static Object wrap(Object o)
Backport ofJSONObject.wrap(Object)
for use on pre-KitKat systems.
-
-