cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject [2/5] ios commit: Revert "Don't bother pretty-printing in cdv_JSONString. Only slows things down."
Date Thu, 22 Jan 2015 17:50:45 GMT
Revert "Don't bother pretty-printing in cdv_JSONString. Only slows things down."

This reverts commit e68ea35efb5799c8d8778c94a5e20ce256a91dc1.


Project: http://git-wip-us.apache.org/repos/asf/cordova-ios/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ios/commit/60f8c589
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ios/tree/60f8c589
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ios/diff/60f8c589

Branch: refs/heads/master
Commit: 60f8c589b8dad8f54ed5edca03e58fe2489cd9ee
Parents: e68ea35
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Thu Jan 22 12:49:38 2015 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Thu Jan 22 12:49:38 2015 -0500

----------------------------------------------------------------------
 CordovaLib/Classes/CDVJSON.m | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ios/blob/60f8c589/CordovaLib/Classes/CDVJSON.m
----------------------------------------------------------------------
diff --git a/CordovaLib/Classes/CDVJSON.m b/CordovaLib/Classes/CDVJSON.m
index 68cf3d4..9aa07f8 100644
--- a/CordovaLib/Classes/CDVJSON.m
+++ b/CordovaLib/Classes/CDVJSON.m
@@ -26,7 +26,7 @@
 {
     NSError* error = nil;
     NSData* jsonData = [NSJSONSerialization dataWithJSONObject:self
-                                                       options:0
+                                                       options:NSJSONWritingPrettyPrinted
                                                          error:&error];
 
     if (error != nil) {
@@ -89,3 +89,4 @@
 }
 
 @end
+


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message