[Interest] json file handling

Mathieu Slabbinck matty.slabbinck at gmail.com
Wed Apr 15 16:17:20 CEST 2015


Hi,

I'm using Qt5 to write json objects to a file.
The json structure contains one array with x data elements, like:

{
    "datapointsarray": [
        {
            "datapoint":"1",
            "datapoint":"2",
            ...
        }
     ]
}
Each x seconds, a "datapoint" should be added.

The dilemma I'm in is, how can I tell the json writer to "append" to a
current json file without loading the whole file back in memory (eg
read json from file->edit in Qt->write back to file). Because, after a
while, I suppose the file will get quite large.

Kr

Mathieu



More information about the Interest mailing list