This commit is contained in:
Anis Kadri 2012-06-04 11:38:07 -07:00
commit 8451133d00
2 changed files with 2 additions and 2 deletions

View File

@ -1166,7 +1166,7 @@ public class ContactAccessorSdk5 extends ContactAccessor {
// Modify urls // Modify urls
JSONArray websites = null; JSONArray websites = null;
try { try {
websites = contact.getJSONArray("websites"); websites = contact.getJSONArray("urls");
if (websites != null) { if (websites != null) {
for (int i=0; i<websites.length(); i++) { for (int i=0; i<websites.length(); i++) {
JSONObject website = (JSONObject)websites.get(i); JSONObject website = (JSONObject)websites.get(i);

View File

@ -80,7 +80,7 @@ public class PluginResult {
} }
public String getJSONString() { public String getJSONString() {
return "{status:" + this.status + ",message:" + this.message + ",keepCallback:" + this.keepCallback + "}"; return "{\"status\":" + this.status + ",\"message\":" + this.message + ",\"keepCallback\":" + this.keepCallback + "}";
} }
public String toSuccessCallbackString(String callbackId) { public String toSuccessCallbackString(String callbackId) {