Searched refs:json (Results 1 – 19 of 19) sorted by relevance
21 import org.json.JSONObject;22 import org.json.JSONException;141 JSONObject json = new JSONObject(); in toJSONObject() local145 json.put("f", mFirstName); in toJSONObject()148 json.put("l", mLastName); in toJSONObject()151 json.put("m", mCellPhone); in toJSONObject()154 json.put("o", mOfficePhone); in toJSONObject()157 json.put("h", mHomePhone); in toJSONObject()160 json.put("e", mEmail); in toJSONObject()163 json.put("i", mServerContactId); in toJSONObject()[all …]
34 import org.json.JSONArray;35 import org.json.JSONException;36 import org.json.JSONObject;
24 import org.json.JSONArray;25 import org.json.JSONException;26 import org.json.JSONObject;63 public static Recipe fromJson(Context context, JSONObject json) { in fromJson() argument66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE); in fromJson()67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY); in fromJson()68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) { in fromJson()69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE); in fromJson()71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS); in fromJson()78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS); in fromJson()
30 import org.json.JSONArray;31 import org.json.JSONException;32 import org.json.JSONObject;64 private List<Item> parseJson(JSONObject json) { in parseJson() argument67 JSONArray items = json.getJSONArray(Constants.RECIPE_FIELD_LIST); in parseJson()
24 import org.json.JSONException;25 import org.json.JSONObject;
35 import org.json.JSONObject;
24 import org.json.JSONArray;25 import org.json.JSONException;26 import org.json.JSONObject;250 private MediaMetadata buildFromJSON(JSONObject json, String basePath) throws JSONException { in buildFromJSON() argument251 String title = json.getString(JSON_TITLE); in buildFromJSON()252 String album = json.getString(JSON_ALBUM); in buildFromJSON()253 String artist = json.getString(JSON_ARTIST); in buildFromJSON()254 String genre = json.getString(JSON_GENRE); in buildFromJSON()255 String source = json.getString(JSON_SOURCE); in buildFromJSON()256 String iconUrl = json.getString(JSON_IMAGE); in buildFromJSON()[all …]
21 import org.json.JSONException;22 import org.json.JSONObject;
66 import org.json.JSONArray;67 import org.json.JSONException;68 import org.json.JSONObject;
25 import org.json.JSONArray;26 import org.json.JSONException;27 import org.json.JSONObject;
19 import org.json.JSONArray;20 import org.json.JSONException;21 import org.json.JSONObject;
22 import org.json.JSONObject;
23 import org.json.JSONException;24 import org.json.JSONObject;
25 import org.json.JSONException;26 import org.json.JSONObject;
42 import org.json.JSONArray;43 import org.json.JSONException;44 import org.json.JSONObject;
25 import org.json.JSONException;
24 import org.json.JSONObject;
167 …nt/build/optional.json platforms/${P…