incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From deedu...@apache.org
Subject webworks commit: [CB-980] Quote key values in JSON returned from native.
Date Thu, 28 Jun 2012 19:40:17 GMT
Updated Branches:
  refs/heads/master fe012f74c -> a5538a1b6


[CB-980] Quote key values in JSON returned from native.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/commit/a5538a1b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/tree/a5538a1b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/diff/a5538a1b

Branch: refs/heads/master
Commit: a5538a1b681bfa2f83265dc25345391bf163be2b
Parents: fe012f7
Author: Drew Walters <deedubbu@apache.org>
Authored: Thu Jun 28 14:39:01 2012 -0500
Committer: Drew Walters <deedubbu@apache.org>
Committed: Thu Jun 28 14:39:01 2012 -0500

----------------------------------------------------------------------
 .../src/org/apache/cordova/api/PluginResult.java   |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-blackberry-webworks/blob/a5538a1b/framework/ext/src/org/apache/cordova/api/PluginResult.java
----------------------------------------------------------------------
diff --git a/framework/ext/src/org/apache/cordova/api/PluginResult.java b/framework/ext/src/org/apache/cordova/api/PluginResult.java
index c4954a9..ce84884 100644
--- a/framework/ext/src/org/apache/cordova/api/PluginResult.java
+++ b/framework/ext/src/org/apache/cordova/api/PluginResult.java
@@ -88,7 +88,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 + "}";
     }
 
     /**


Mime
View raw message