Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Merge documentation is out of date. #198

Open
ThatRozebudDude opened this issue Feb 23, 2025 · 0 comments
Open

JSON Merge documentation is out of date. #198

ThatRozebudDude opened this issue Feb 23, 2025 · 0 comments

Comments

@ThatRozebudDude
Copy link

ThatRozebudDude commented Feb 23, 2025

The Merging for JSON section of the Merging Files documentation still shows the old method for merging data into JSON files.

I believe the correct merge example should be

[
  	{"op": "replace", "path": "/data/difficulty", "value": "super_hard"},
	{"op": "replace", "path": "/data/nested/enemies/1/weapon", "value": "minigun"}
]

but I haven't actually checked if that's correct since I haven't really used JSONPatch much. I might make a PR to update the documentation if I have the time and get around to checking to make sure the thing I wrote actually works but I do not have the time to do that right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant