You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by sh...@apache.org on 2015/03/06 23:27:34 UTC
[02/31] ios commit: Revert "Don't bother pretty-printing in
cdv_JSONString. Only slows things down."
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/wkwebview
Commit: 60f8c589b8dad8f54ed5edca03e58fe2489cd9ee
Parents: e68ea35
Author: Andrew Grieve <ag...@chromium.org>
Authored: Thu Jan 22 12:49:38 2015 -0500
Committer: Andrew Grieve <ag...@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