Re: [Interest] json file handling

2015-04-16 Thread Jason H
> Sent: Wednesday, April 15, 2015 at 7:21 PM > From: "Thiago Macieira" > To: interest@qt-project.org > Subject: Re: [Interest] json file handling > > On Wednesday 15 April 2015 20:27:00 Jason H wrote: > > Anyway, when converting structured data, you can im

Re: [Interest] json file handling

2015-04-15 Thread Thiago Macieira
On Wednesday 15 April 2015 20:27:00 Jason H wrote: > Anyway, when converting structured data, you can imagine everything as those > four functions. push(): add an item (or key) to a list > pop(): end the list > item(key): create an item with key > value(value): set the value of the last item. > >

Re: [Interest] json file handling

2015-04-15 Thread Thiago Macieira
On Wednesday 15 April 2015 19:28:49 Andre Somers wrote: > On 15-4-2015 17:25, Thiago Macieira wrote: > > On Wednesday 15 April 2015 16:36:15 André Somers wrote: > >>> 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 i

Re: [Interest] json file handling

2015-04-15 Thread Jason H
> Sent: Wednesday, April 15, 2015 at 1:28 PM > From: "Andre Somers" > To: interest@qt-project.org > Subject: Re: [Interest] json file handling > > On 15-4-2015 17:25, Thiago Macieira wrote: > > On Wednesday 15 April 2015 16:36:15 André Somers wrote: > >

Re: [Interest] json file handling

2015-04-15 Thread Andreas Pakulat
Hi, Am Mittwoch, 15. April 2015 schrieb Andre Somers : > On 15-4-2015 17:25, Thiago Macieira wrote: > > On Wednesday 15 April 2015 16:36:15 André Somers wrote: > > As for XML, the format may not be suitable but QXmlStreamWriter is since > it > > keeps the state of which tags it needs to close and

Re: [Interest] json file handling

2015-04-15 Thread Andre Somers
On 15-4-2015 17:25, Thiago Macieira wrote: > On Wednesday 15 April 2015 16:36:15 André Somers wrote: >>> 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

Re: [Interest] json file handling

2015-04-15 Thread Thiago Macieira
On Wednesday 15 April 2015 16:36:15 André Somers wrote: > > 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

Re: [Interest] json file handling

2015-04-15 Thread Keith Gardner
On Wed, Apr 15, 2015 at 9:36 AM André Somers wrote: > Mathieu Slabbinck schreef op 15-4-2015 om 16:17: > > Hi, > > > > I'm using Qt5 to write json objects to a file. > > The json structure contains one array with x data elements, like: > > > > { > > "datapointsarray": [ > > { > >

Re: [Interest] json file handling

2015-04-15 Thread André Somers
Mathieu Slabbinck schreef op 15-4-2015 om 16:17: > 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", >

[Interest] json file handling

2015-04-15 Thread Mathieu Slabbinck
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. Th