1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 14:16:32 +02:00

Generate compact JSON documents

This commit is contained in:
Uwe L. Korn
2014-07-06 02:17:49 +01:00
parent c52a6634c2
commit b7e6f2678f

View File

@@ -126,7 +126,7 @@ toJson( const QVariant &variant, bool* ok )
{ {
*ok = !doc.isNull(); *ok = !doc.isNull();
} }
return doc.toJson(); return doc.toJson( QJsonDocument::Compact );
#else #else
QJson::Serializer serializer; QJson::Serializer serializer;
return serializer.serialize( variant, ok ); return serializer.serialize( variant, ok );