JSON: Difference between revisions

Content added Content deleted
No edit summary
Line 603: Line 603:
encoding:NSUTF8StringEncoding] autorelease];
encoding:NSUTF8StringEncoding] autorelease];
NSLog(@"%@", json_string2);</lang>
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}}==
=={{header|OCaml}}==