[Development] QJsonDocument Compact output

Richard Gerd Kuesters richard at humantech.com.br
Wed Feb 19 17:41:18 CET 2014


LOL :)

yeah, well, json can be tricky sometimes ... but between tecnologies 
(c++ to javascript or anything else), we must be kinda "purist" when 
exchanging data ... you'll never know how the other side will work, and 
some optimizations can break stuff. one silly example is those who, to 
compact the json even more, replaces "true" and/or "false" for 1 and 0 ...


best regards,
Richard.


On 02/19/2014 12:54 PM, Joerg Bornemann wrote:
> On 19-Feb-14 16:52, Joerg Bornemann wrote:
>> On 19-Feb-14 16:51, Joerg Bornemann wrote:
>>
>>> It could be even more compact by omitting the double quotes on the right
>>> side of the colon, iff the string forms a valid JS identifier.
>> on the *left* side, moron
> And apparently that's only true for JS objects, not JSON.
> /me crawls back under his stone
>
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20140219/8e7f630e/attachment.html>


More information about the Development mailing list