How do I write to a Json file?

Hello guys,

I am working on a system, where some values are saved to a json, so they can be accessed later.
The reading of the file is working great, but I can’t seem to get the writing working. I can’t find any documentation on this.
I guess it has something to do with the TJsonWriter.
Can someone give me an example?

Thank you!