Generating Objective-C Literals from JSON
·1 min read
The modern syntaxes for NSDictionary, NSArray, NSNumber are supported from Xcode 4.4. To use this easily for testing, I customized JSON#stringify method ported from JSON2.js.
With node.js, the script can convert JSON from STDIN.
Also in browser, this works with stripping lines under if(process) scope.