© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
7 replies
behindthewaterfall

✅ how do I read a json file, edit it and save the edit in the json file?

lets say we have a json file here:
{
"meow" : 2
}
{
"meow" : 2
}


3 things Im wondering how to do(code blocks should suffice), in the first I wanna make meows value 3
in the second I want to add a value called woof with the value of 1
in the third I want to remove woof from the json
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ How do i read the next line in a text file
C#CC# / help
3y ago
❔ How to edit a .json file from project files?
C#CC# / help
3y ago
✅ How to edit and save specific appsettings.json (project root) section?
C#CC# / help
4y ago