Searched refs:json (Results 1 – 5 of 5) sorted by relevance
22 import org.json.JSONArray;23 import org.json.JSONException;24 import org.json.JSONObject;54 public static UpdateConfig fromJson(String json) throws JSONException { in fromJson() argument57 JSONObject o = new JSONObject(json); in fromJson()94 c.mRawJson = json; in fromJson()
71 String json = new String(Files.readAllBytes(f.toPath()), in getUpdateConfigs() local73 configs.add(UpdateConfig.fromJson(json)); in getUpdateConfigs()
102 String json = "{" in getUpdatePackageFile_throwsErrorIfNotAFile() local108 UpdateConfig config = UpdateConfig.fromJson(json); in getUpdatePackageFile_throwsErrorIfNotAFile()
30 import json120 json.dump(self.config, out_file, indent=4, separators=(',', ': '), sort_keys=True)
25 at `res/raw/sample.json`.211 - [x] Add `UpdateConfig` for working with json config files