fpJson fully supports JSON: https://www.freepascal.org/docs-html/fcl/fpjson/index.html https://wiki.lazarus.freepascal.org/JSON
There's also JSON support in the LGenerics package, but it's not a bundled package as far as I know. Thomas ----- Original Message ----- From: Darius Blaszyk via fpc-pascal <fpc-pascal@lists.freepascal.org> To: FPC-Pascal users discussions <fpc-pascal@lists.freepascal.org> 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 elements (which I don't know what they are in advance) one by one. An example of the JSON file is given below. "keywords": { "key": "value", "key1": "value1", "key2": "value2" }, Ideally, I'd like to be able to stick to the FPC out-of-the-box library. Any help would be appreciated. Rgds, Darius _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal