# How do I write to a Json file?

**URL:** <https://forums.unrealengine.com/t/how-do-i-write-to-a-json-file/438283>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 25, 2018, 5:16pm UTC](https://forums.unrealengine.com/t/how-do-i-write-to-a-json-file/438283 "2018-11-25T17:16:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![SenseiHaketon](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SenseiHaketon](https://forums.unrealengine.com/u/SenseiHaketon)\
**Post date:** [November 25, 2018, 5:16pm UTC](https://forums.unrealengine.com/t/how-do-i-write-to-a-json-file/438283/1 "2018-11-25T17:16:48Z")

</div>

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.

Thanks!

---

<div class="post-metadata">

**Author:** ![Spidermined](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Spidermined](https://forums.unrealengine.com/u/Spidermined)\
**Post date:** [November 28, 2018, 8:47pm UTC](https://forums.unrealengine.com/t/how-do-i-write-to-a-json-file/438283/2 "2018-11-28T20:47:57Z")

</div>

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:

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

---

<div class="post-metadata">

**Author:** ![nande](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nande/32/1057698_2.png) [@nande](https://forums.unrealengine.com/u/nande)\
**Post date:** [April 26, 2024, 3:20am UTC](https://forums.unrealengine.com/t/how-do-i-write-to-a-json-file/438283/3 "2024-04-26T03:20:56Z")

</div>

this might help [[SOLVED] JSON Serializing and Deserializing C++ - #3 by CHADALAK1](https://forums.unrealengine.com/t/solved-json-serializing-and-deserializing-c/119867/3)
