Created
January 29, 2014 13:20
-
-
Save bithavoc/8687758 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * http://johan.heapsource.com | |
| */ | |
| import std.stdio; | |
| import std.json; | |
| void main() { | |
| JSONValue v = parseJSON(q{ | |
| {"a":2, "b":{"c":20}} | |
| }); | |
| string str = toJSON(&v, true); | |
| writeln(str); | |
| } | |
| // (Output) | |
| /* | |
| { | |
| "a": 2, | |
| "b": { | |
| "c": 20 | |
| } | |
| } | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment