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 Objectunwrap(Object o)Convert the Json java representation to Java objects.static Objectwrap(Object o)Backport ofJSONObject.wrap(Object)for use on pre-KitKat systems.
-
-
-
Method Detail
-
unwrap
@Nullable public static Object unwrap(@Nullable Object o)
Convert the Json java representation to Java objects. Particularly used for converting JSONArray and JSONObject to Lists and Maps.
-
wrap
@Nullable public static Object wrap(@Nullable Object o)
Backport ofJSONObject.wrap(Object)for use on pre-KitKat systems.
-
-