Re: [fpc-pascal] Parse JSON

2023-06-25 Thread Michael Van Canneyt via fpc-pascal
On Fri, 23 Jun 2023, Darius Blaszyk via fpc-pascal wrote: Hi all, I've hardly done anything with JSON in Freepascal before, so apologies for the trivial question. I want to traverse an array in JSON and retrieve the elements (which I don't know what they are in advance) one by one. An exam

Re: [fpc-pascal] Parse JSON

2023-06-25 Thread Thomas Kurz via fpc-pascal
laszyk via fpc-pascal To: FPC-Pascal users discussions Sent: Friday, June 23, 2023, 16:02:26 Subject: [fpc-pascal] Parse JSON Hi all, I've hardly done anything with JSON in Freepascal before, so apologies for the trivial question. I want to traverse an array in JSON and retrieve the el

[fpc-pascal] Parse JSON

2023-06-25 Thread Darius Blaszyk via fpc-pascal
Hi all, I've hardly done anything with JSON in Freepascal before, so apologies for the trivial question. I want to traverse an array in JSON and retrieve the elements (which I don't know what they are in advance) one by one. An example of the JSON file is given below. "keywords": { "ke