Re: [Development] QJsonDocument formatting

2013-03-03 Thread Matt Broadstone
On Sun, Mar 3, 2013 at 4:26 PM, Thiago Macieira wrote: > On domingo, 3 de março de 2013 16.19.17, Matt Broadstone wrote: > > I'd like to propose a new method added to the QJsonDocument class: > >QJsonDocument::toFormattedJson(int indent, bool compact) > > Too late. It's already there. > >

Re: [Development] QJsonDocument formatting

2013-03-03 Thread Thiago Macieira
On domingo, 3 de março de 2013 16.19.17, Matt Broadstone wrote: > I'd like to propose a new method added to the QJsonDocument class: >QJsonDocument::toFormattedJson(int indent, bool compact) Too late. It's already there. enum JsonFormat { Indented, Compact }; QByt

[Development] QJsonDocument formatting

2013-03-03 Thread Matt Broadstone
Hello, I'd like to propose a new method added to the QJsonDocument class: QJsonDocument::toFormattedJson(int indent, bool compact) QJsonPrivate::Writer currently supports these features but unfortunately there is no way to get to it from the public API. Ideally, these options would be available