Lines Matching refs:json
28 import org.json.JSONException;
29 import org.json.JSONObject;
65 JSONObject json = new JSONObject();
67 json.put(BASE_ACCOUNT_URI, baseAccountUri);
68 json.put(ADDRESS_STRING, address);
69 json.put(NAME_STRING, name);
70 json.put(REPLY_TO, replyTo);
71 json.put(IS_DEFAULT, isDefault);
72 json.put(IS_CUSTOM_FROM, isCustomFrom);
76 return json;
79 public static ReplyFromAccount deserialize(Account account, JSONObject json) {
82 Uri uri = Utils.getValidUri(json.getString(BASE_ACCOUNT_URI));
83 String addressString = json.getString(ADDRESS_STRING);
84 String nameString = json.getString(NAME_STRING);
85 String replyTo = json.getString(REPLY_TO);
86 boolean isDefault = json.getBoolean(IS_DEFAULT);
87 boolean isCustomFrom = json.getBoolean(IS_CUSTOM_FROM);