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
JSONArray websites = null;
try {
websites = contact.getJSONArray("websites");
websites = contact.getJSONArray("urls");
if (websites != null) {
for (int i=0; i<websites.length(); i++) {
JSONObject website = (JSONObject)websites.get(i);

View File

@ -80,7 +80,7 @@ public class PluginResult {
}
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) {