Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Graeme Geldenhuys
On 2017-02-08 16:47, Michael Van Canneyt wrote: > Indeed. If you experiment in the browser console: It might just be worth adding a small note about that "gotcha" in the FindPath documentation. Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Michael Van Canneyt
On Wed, 8 Feb 2017, Graeme Geldenhuys wrote: On 2017-02-08 16:33, Michael Van Canneyt wrote: One way is to allow to escape dots in the path. But because every character is allowed in a javascript object property, that would mean that \. can also be a correct property name, and so we need to

Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Graeme Geldenhuys
On 2017-02-08 16:33, Michael Van Canneyt wrote: > One way is to allow to escape dots in the path. > But because every character is allowed in a javascript object property, that > would mean that \. can also be a correct property name, and so we need to > introduce \\ as an escape for \... > > It

Re: [fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Michael Van Canneyt
On Wed, 8 Feb 2017, Graeme Geldenhuys wrote: Hi, I've studied the following documenation to make sure I'm using FindPath() correctly. http://www.freepascal.org/docs-html/3.0.0/fcl/fpjson/tjsondata.findpath.html since . is used as a delimiter between path segments, you indeed cannot find

[fpc-pascal] TJSONData.FindPath() troubles where data contains dots.

2017-02-08 Thread Graeme Geldenhuys
Hi, I've studied the following documenation to make sure I'm using FindPath() correctly. http://www.freepascal.org/docs-html/3.0.0/fcl/fpjson/tjsondata.findpath.html Now, I have the following JSON data I omitted what is not relevant. { ...snip...