@lucid-softworks/json-pointer
v0.1.0
Published
RFC 6901 JSON Pointer parsing and immutable operations.
Maintainers
Readme
@lucid-softworks/json-pointer
RFC 6901 JSON Pointer parsing, formatting, reads, existence checks, immutable writes, and immutable removals.
getJsonPointer({ users: [{ name: "Ada" }] }, "/users/0/name"); // "Ada"
setJsonPointer(document, "/users/0/name", "Grace");Traversal uses own properties only. Object writes use property descriptors, so
tokens such as __proto__ cannot pollute prototypes.
