Class JsonUtilsKt
-
- All Implemented Interfaces:
public final class JsonUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static StringgetStringOrNull(JSONObject $self, String key)final static BooleangetBooleanOrNull(JSONObject $self, String key)final static IntegergetIntOrNull(JSONObject $self, String key)final static LonggetLongOrNull(JSONObject $self, String key)final static DoublegetDoubleOrNull(JSONObject $self, String key)final static StringtoStringPretty(JSONObject $self)final static StringtoStringPretty(JSONArray $self)final static List<String>optStringList(JSONObject $self, String key)final static List<Integer>optIntList(JSONObject $self, String key)final static <T extends ModelObject> Map<String, T>jsonToMap(JSONObject $self, ModelObject.Serializer<T> modelSerializer)final static Map<String, String>getMapOrNull(JSONObject $self, String key)-
-
Method Detail
-
getStringOrNull
final static String getStringOrNull(JSONObject $self, String key)
-
getBooleanOrNull
final static Boolean getBooleanOrNull(JSONObject $self, String key)
-
getIntOrNull
final static Integer getIntOrNull(JSONObject $self, String key)
-
getLongOrNull
final static Long getLongOrNull(JSONObject $self, String key)
-
getDoubleOrNull
final static Double getDoubleOrNull(JSONObject $self, String key)
-
toStringPretty
final static String toStringPretty(JSONObject $self)
-
toStringPretty
final static String toStringPretty(JSONArray $self)
-
optStringList
final static List<String> optStringList(JSONObject $self, String key)
-
optIntList
final static List<Integer> optIntList(JSONObject $self, String key)
-
jsonToMap
final static <T extends ModelObject> Map<String, T> jsonToMap(JSONObject $self, ModelObject.Serializer<T> modelSerializer)
-
getMapOrNull
final static Map<String, String> getMapOrNull(JSONObject $self, String key)
-
-
-
-