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
    };

    QByteArray toJson() const; //### Merge in Qt6
    QByteArray toJson(JsonFormat format) const;


--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Development mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to