How do I write to a Json file?

So I am working on a read/write system for Json. The reading part was quite easy and works well.
I am using the built-in TJsonReader. But I really don’t know how to write to a json file.
Like creating a new one when there is no file and also overwriting existing data.

Can you give me an example on how to do so? I didn’t find anything in the documentation.


I found a wiki page that describes how to use FPlatformFileManager, IPlatformFile, and FFileHelper to save the value of an FString object into a text file: