JSON: Difference between revisions

337 bytes added ,  11 years ago
No edit summary
Line 603:
encoding:NSUTF8StringEncoding] autorelease];
NSLog(@"%@", json_string2);</lang>
 
=={{header|Objeck}}==
<lang objeck>
use Struct;
use JSON;
 
bundle Default {
class Json {
function : Main(args : String[]) ~ Nil {
parser := JSONParser->New("{ \"foo\": 1, \"bar\": [10, \"apples\"] }");
root := parser->Parse();
if(root <> Nil) {
root->ToString()->PrintLine();
};
}
}
}</lang>
 
=={{header|OCaml}}==
760

edits