erickveil / How-To-Use-JSON-with-Qt

Some simple projects demonstrating the use of JSON with the C++ Qt libraries.
1 stars 0 forks source link

Logging Json into a file #1

Open yomuevans opened 4 years ago

yomuevans commented 4 years ago

Thanks btw, this has been helpful, but how do i log several json strings into a document. Cause this just replaces the sstrings inside

erickveil commented 4 years ago

Each string would need its own, unique key, if you are keeping them in an object. If you are keeping them in an array, the QJsonArray::append(string) method should just add new strings to the end.