D-styled data file

Christopher Wright dhasenan at gmail.com
Wed Apr 29 19:18:04 PDT 2009


Saaa wrote:
> "Christopher Wright" <dhasenan at gmail.com> wrote in message 
> news:gtb02h$e4g$1 at digitalmars.com...
>> Saaa wrote:
>>> If the JSON writer won't write every item (which will be thousands of 
>>> items)
>>> on a new line and reading in multi arrays, then I think I need to witch 
>>> to Tango :D
>> Tango's JSON printer has options for pretty-printing and condensed 
>> printing. The default is condensed; everything will be on one line. If you 
>> choose to use the pretty printing style, you get a nicely indented file 
>> that's easy for humans to read.
> Ok, that's nice. If I can get it to do what I want I think I'll switch to 
> Tango then.
> Not using that many std functions anyways although phobos2 looks really 
> neat.
> Hope to see Tango and Phobos living together in dmd2 when it is announced 
> stable. 

If your licensing requirements allow, you can probably just extract 
tango.text.json and use that -- it shouldn't have significant 
requirements on the rest of tango.


More information about the Digitalmars-d-learn mailing list