Re: Reverse JSON toPrettyString

2018-12-18 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/17/18 5:09 PM, Anonymouse wrote: I have a JSON string[][string] associative array object that I want to take the .toPrettyString value of. However, it sorts the output alphabetically. string[][string] aa = [ "abc" : [], "def" : [], "ghi" : [] ]; auto asJSON = JSONValue(aa); writeln(asJSO

Reverse JSON toPrettyString

2018-12-17 Thread Anonymouse via Digitalmars-d-learn
I have a JSON string[][string] associative array object that I want to take the .toPrettyString value of. However, it sorts the output alphabetically. string[][string] aa = [ "abc" : [], "def" : [], "ghi" : [] ]; auto asJSON = JSONValue(aa); writeln(asJSON.toPrettyString); Output: { "abc"