public class JSONUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.HashMap<java.lang.String,java.lang.String> |
iterateOverJSON(org.json.JSONObject jsonObject)
Iterate over all keys of the JSON
|
org.json.JSONObject |
loadJSONFromAsset(android.content.Context context,
java.lang.String filename)
Read and parse a JSON file stored in assets folder
|
public static java.util.HashMap<java.lang.String,java.lang.String> iterateOverJSON(org.json.JSONObject jsonObject)
jsonObject
- the json objectpublic org.json.JSONObject loadJSONFromAsset(android.content.Context context, java.lang.String filename)
context
- the contextfilename
- the filename