- jsonArrayToList
Converts a JSONArray to a List.
- jsonObjectToMap
Convert a JSONObject to a Map.
- jsonObjectToStringMap
Convert a JSONObject to a flat, string-keyed and string-valued map. All values
are recorded as strin
- listToJsonArray
Converts a List into a JSONArray. A ClassCastException will be thrown if any
object in the list (or
- mapToJsonObject
Converts a string-keyed Map into a JSONObject. This will cause a
ClassCastException if any sub-map h
- nullIfNullOrEmpty
- optString
Calls through to JSONObject#optString(String) while safely converting the raw
string "null" and the
- stringHashToJsonObject
Converts a String-String Map into a JSONObject.
- getString
Calls through to JSONObject#getString(String) while safely converting the raw
string "null" and the
- optBoolean
Calls through to JSONObject#optInt(String) only in the case that the key exists.
This returns null i
- optCountryCode
Calls through to JSONObject#optString(String) while safely converting the raw
string "null" and the
- optCurrency
Calls through to JSONObject#optString(String) while safely converting the raw
string "null" and the