Decode JSON string

If you made a script you can offer it to the others here, or ask help to improve it. You can also report here bugs & problems with existing scripts.
Post Reply
marceltrou
Posts: 5
Joined: 2024-01-29 18:15:46

Decode JSON string

Post by marceltrou »

I have a page resulting in a JSON string and some char are encoded with \uxxxx.
It is not decoded with HTMLdecode or URLdecode.
Is there a function to decode the string ?
antp
Site Admin
Posts: 9629
Joined: 2002-05-30 10:13:07
Location: Brussels
Contact:

Re: Decode JSON string

Post by antp »

There is a DecodeJson fonction in JsonUtils.pas that you can use by adding "JsonUtils" to the "uses" line at the top of the script.
Post Reply