Package me.ulrich.clans.utils
Class JsonUtils
java.lang.Object
me.ulrich.clans.utils.JsonUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.json.JSONObjectdeepMerge(org.json.JSONObject source, org.json.JSONObject target) Optional<org.json.JSONArray>Optional<org.json.JSONObject>getObjectKeyGetBoolean(String key, String object) getObjectKeyGetInteger(String key, String object) getObjectKeyGetObject(String key, String object) getObjectKeyGetString(String key, String object) Optional<org.json.JSONObject>getObjectKeyJsonObject(String key, String object) booleanbooleankeyHasObject(String key, String object)
-
Constructor Details
-
JsonUtils
public JsonUtils()
-
-
Method Details
-
getJsonObject
-
setObject
-
hasKey
- Throws:
Exception
-
getArray
- Throws:
Exception
-
keyHasObject
- Throws:
Exception
-
getObjectKeyJsonObject
public Optional<org.json.JSONObject> getObjectKeyJsonObject(String key, String object) throws Exception - Throws:
Exception
-
getObjectKeyGetObject
- Throws:
Exception
-
getObjectKeyGetString
- Throws:
Exception
-
getObjectKeyGetInteger
- Throws:
Exception
-
getObjectKeyGetBoolean
- Throws:
Exception
-
deepMerge
public static org.json.JSONObject deepMerge(org.json.JSONObject source, org.json.JSONObject target) throws org.json.JSONException - Throws:
org.json.JSONException
-