Am Sun, 20 Jan 2013 23:27:57 -0800
schrieb Walter Bright <newshou...@digitalmars.com>:

> 
> I find this to be excessive, and it helps to produce truly
> gigantic .json files. I think it's better to just put out the deco
> for the type:
> 
> "type" : "PPPi"
> 
> But, you might say, that is not user friendly! Nope, it isn't. But
> the .json output is for a machine to read, not humans, and the deco
> types are very space efficient, and are trivial to convert to
> whatever data structure the reader needs. Much easier than the
> verbose thing.
> 
> What do you think?

How about compressing the json file (lzma)?

Should be just as space efficient, can be easily translated to user
readable output (uncompress), also trivial to read for machines. And it
also compresses the whitespace characters and other text.

https://github.com/D-Programming-Deimos/liblzma

Reply via email to