License:
Version:
Authors:
1 | json.print ((char[] s) {Stdout(s);}); |
1 2 3 4 5 | auto json = new Json!(char); // [true, false, null, "text"] with (json) value = array (true, false, null, "text"); |
1 2 3 | // {"a" : 10} with (json) value = object (pair("a", value(10))); |
1 2 3 | // {"a" : 10, "b" : true} with (json) value = object (pair("a", value(10)), pair("b", value(true))); |
1 2 3 | // {"a" : [10, true, {"b" : null}]} with (json) value = object (pair("a", array(10, true, object(pair("b"))))); |
TODO: