Home | History | Annotate | Download | only in com.example.android.wearable.recipeassistant

Lines Matching refs:json

24 import org.json.JSONArray;
25 import org.json.JSONException;
26 import org.json.JSONObject;
63 public static Recipe fromJson(Context context, JSONObject json) {
66 recipe.titleText = json.getString(Constants.RECIPE_FIELD_TITLE);
67 recipe.summaryText = json.getString(Constants.RECIPE_FIELD_SUMMARY);
68 if (json.has(Constants.RECIPE_FIELD_IMAGE)) {
69 recipe.recipeImage = json.getString(Constants.RECIPE_FIELD_IMAGE);
71 JSONArray ingredients = json.getJSONArray(Constants.RECIPE_FIELD_INGREDIENTS);
78 JSONArray steps = json.getJSONArray(Constants.RECIPE_FIELD_STEPS);