-
public final class JsonKt
-
-
Method Summary
Modifier and Type Method Description final static JSONObjecttoJSONObject(Object $self)Extension function to convert any object to a JSONObject. final static JSONArraytoJSONArray(Collection<Object> $self)Extension function to convert a Collection to a JSONArray. final static StringtoJSONObjectString(Object $self)Extension function to convert any object to a JSON string. final static StringtoJSONArrayString(Collection<Object> $self)Extension function to convert a Collection to a JSON string. -
-
Method Detail
-
toJSONObject
final static JSONObject toJSONObject(Object $self)
Extension function to convert any object to a JSONObject.
-
toJSONArray
final static JSONArray toJSONArray(Collection<Object> $self)
Extension function to convert a Collection to a JSONArray.
-
toJSONObjectString
final static String toJSONObjectString(Object $self)
Extension function to convert any object to a JSON string.
-
toJSONArrayString
final static String toJSONArrayString(Collection<Object> $self)
Extension function to convert a Collection to a JSON string.
-
-
-
-