Question Sons of the forest how to edit JSON files?

emitfudd

Distinguished
Apr 9, 2017
566
81
18,990
So instead of letting us use wordpad to edit game files, the developers used .JSON files. I have tried JSONedit and an online JSON editor and neither of them work. All I want to do is change some numbers such as the fuel burn time for fires. Can anybody tell me what software will allow me to edit these files? It can't be this difficult.
 

USAFRet

Titan
Moderator
So instead of letting us use wordpad to edit game files, the developers used .JSON files. I have tried JSONedit and an online JSON editor and neither of them work. All I want to do is change some numbers such as the fuel burn time for fires. Can anybody tell me what software will allow me to edit these files? It can't be this difficult.
They often make it "difficult" on purpose.

JSON can be just a wrapper around encrypted data.

If they wanted easily editable data by the users, they would have exposed that functionality.
 

emitfudd

Distinguished
Apr 9, 2017
566
81
18,990
They have a built in cheat console by typing "cheatstick" on your keyboard and pressing F1 so I don't think they care if we modify files. It's no different than other games like Fallout 4 with ini files that can be edited except these aren't ini files.
 

USAFRet

Titan
Moderator
They have a built in cheat console by typing "cheatstick" on your keyboard and pressing F1 so I don't think they care if we modify files. It's no different than other games like Fallout 4 with ini files that can be edited except these aren't ini files.
Due to the fact that you can't easily edit, it IS different than just ini files.

Have you asked the developers?
 

emitfudd

Distinguished
Apr 9, 2017
566
81
18,990
It's in early access and they just put out an update so they won't change anything until the game officially releases in February. I found Reddit posts of people editing these files but no information on how they did it.
 

emitfudd

Distinguished
Apr 9, 2017
566
81
18,990
'{"Version":"0.0.0","FiresPerStructureType":{"32":[{"IsLit":true,"PutOutChance":1,"Fuel":1189.44885,"FuelDrainRate":0.25},{"IsLit":true,"PutOutChance":1,"Fuel":1009.37268,"FuelDrainRate":0.25},{"IsLit":true,"PutOutChance":1,"Fuel":1249.38245,"FuelDrainRate":0.25},{"IsLit":true,"PutOutChance":1,"Fuel":1249.38965,"FuelDrainRate":0.25},{"IsLit":true,"PutOutChance":1,"Fuel":1249.38855,"FuelDrainRate":0.25},{"IsLit":true,"PutOutChance":2,"Fuel":920.522,"FuelDrainRate":0.0999999642}]}}'

Pretty straightforward. I just need to know how to edit these strings. I can copy them. I can paste them. When I click on an area I get no cursor and if I highlight a specific number it shows highlighted but I can't use delete or type a new number.
 

MrLitschel

Reputable
Nov 7, 2021
244
48
4,640
So instead of letting us use wordpad to edit game files, the developers used .JSON files. I have tried JSONedit and an online JSON editor and neither of them work. All I want to do is change some numbers such as the fuel burn time for fires. Can anybody tell me what software will allow me to edit these files? It can't be this difficult.
Use NotePad to edit the game files as JSON.

For further information see the below site for that particular game

 
You can try "Microsoft Visual Studio Code" FREE and like already said notepad non ++.

I just tried it on a .JSON file in Minecraft and both ways opened it .

My son just added if you use on your computer non English or English/ Japanese for example you have to tell MVSC to display it in the correct encoding. AKA Japanese ( shift JIS )

Don't know if this is why your getting jibber.
 
Last edited:

emitfudd

Distinguished
Apr 9, 2017
566
81
18,990
I can't believe how difficult this is. There is no option to "open with" only open. I can copy the data string and paste it into notepad and edit it but there is no way to get it back into the original location.