Make the QJsonDocument::toJson() output compact


- Use the QJsonDocument::Compact option in the
QJsonDocument::toJson() to make output shorter.
As a result, toJson() returns the compact version
of a UTF-8 encoded JSON document (without spaces
and `\n` symbols).
See an example of the compact result below:
{"Array":[true,999,"string"],"Key":"Value","null":null}

Change-Id: I77d7a3662a921afb994493b9fa1f5d928e5f77d5
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>
commit421c53e32de96ca8c9f2eb28a2ac62213bd6735b
parente3ee64b054cedbcdd2611d98107e9e5e1c5857e4
authorTatiana Borisova <tatiana.borisova@qt.io>
committerTatiana Borisova <tatiana.borisova@qt.io>
commit timeTue, 5 Aug 2025 12:03:05 +0000