how to validate json structure lazarus / 21-General ---------------------------------------------------------------------- Packs · 2024-10-08 10:03 how to validate json structure in lazarus ---------------------------------------------------------------------- Thaddy · 2024-10-08 10:09 Use the fcl-json package. There are many examples on the forum just search for it. https://wiki.freepascal.org/fcl-json#:~:text=fcl- json%20contains%20the%20unit%20%22fpjsonrtti%22%20which%20is%20used ---------------------------------------------------------------------- Packs · 2024-10-08 12:13 I know this. I want json validator library which will help If some post json data through api. It should validate structure and type then it should call The api. ---------------------------------------------------------------------- Warfley · 2024-10-08 12:24 What do you mean by validate? Syntactic validation? Simple try to parse it and if it doesn't throw an error it's correct. Or schema validation? For the latter take a look at this: https://forum.lazarus.freepascal.org/index.php?topic=62844.0 ---------------------------------------------------------------------- Packs · 2024-10-08 14:41 Api structure validation means Example my api take 4 input When user send request. It should have 4 input as well as it's key and data type should match It should validate . ---------------------------------------------------------------------- Ștefan-Iulian Alecu · 2024-10-08 19:47 Quote from: Packs on October 08, 2024, 04:41:09 pmApi structure validation means Example my api take 4 input When user send request. It should have 4 input as well as it's key and data type should match It should validate . Then validate its schema, look at the link Warfley sent. https://json-schema.org/learn ---------------------------------------------------------------------- silvercoder70 · 2024-10-08 22:27 more ideas here ... https://towardsdatascience.com/how-to-validate-your-json-using-json- schema-f55f4b162dce