JSON object to URL lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- Dane · 2018-03-21 07:25 Hi! There are many topics how to parse JSON object from web response. But I've need to convert JSON object to URL string. An example: from { order: { "DATE_CREATE": "ASC" }, filter: { "NAME": "some", "PHONE": {"VALUE" : "1234", "TYPE" : "somewhere"} }, select: [ "ID", "NAME", "LAST_NAME", "PHONE", "EMAIL" ] } to order[DATE_CREATE]=ASC&filter[NAME]=some&filter[PHONE][VALUE]=1234&fil ter[PHONE][TYPE]=somewhere&select[0]=ID&select[1]=NAME&select[2]=LAST_ NAME&select[3]=PHONE&select[4]=EMAIL I'll be thankful for help or links... ---------------------------------------------------------------------- Leledumbo · 2018-03-21 13:39 Quote from: Dane on March 21, 2018, 08:25:36 amI'll be thankful for help or links... Starting points: http://wiki.freepascal.org/fcl-json https://www.freepascal.org/docs-html/fcl/fpjson/index.html Flattening the object and array might be the most difficult part, everything else is trivial.