Skip to content

JSON Merge documentation is out of date. #198

@ThatRozebudDude

Description

@ThatRozebudDude

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions