public class JsonHelper
extends java.lang.Object
Constructor and Description |
---|
JsonHelper() |
Modifier and Type | Method and Description |
---|---|
static org.json.JSONObject |
readJsonFromAsset(java.lang.String fileName) |
static org.json.JSONObject |
readJsonFromFile(java.io.File file) |
static org.json.JSONObject |
readJsonFromStream(java.io.InputStream stream) |
static org.json.JSONObject |
tryReadJsonFromAssets(java.lang.String fileName) |
@NonNull public static org.json.JSONObject tryReadJsonFromAssets(java.lang.String fileName)
@NonNull public static org.json.JSONObject readJsonFromAsset(java.lang.String fileName)
@NonNull public static org.json.JSONObject readJsonFromFile(java.io.File file) throws org.json.JSONException
org.json.JSONException
@NonNull public static org.json.JSONObject readJsonFromStream(java.io.InputStream stream) throws org.json.JSONException
org.json.JSONException