feat(std/json): JsonPointer (RFC 6901) and JsonValue.get #437
Loading…
Reference in a new issue
No description provided.
Delete branch "loop/435-json-pointer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #435
Step 1 of #81.
JsonPointer(RFC 6901) instd/json(newstd/json/src/pointer.trb, re-exported fromlib.trb) withroot,parse,parseFragment,text,fragment,tokens,child,parent,last,Show/Equals/Hash;JsonValue.get(pointer);JsonPointerError(pointer text,JsonPointerProblem, message). Pure TorbScript, no native, does not touch the seed.Test
std/json/tests/pointer.test.trb: the RFC 6901 section 5 examples in string and fragment form, round trips,~01, navigation and every refusal;torb test std/jsonpasses locally (VM, 39 tests).torb format --check std/json,torb docs source std/json,docs index --check,docs declarations --check,docs check(json page) are clean locally;skills/regenerated.sh tools/gates.sh a): forge CI.Not in this PR: patch operations (RFC 6902, step 2 of #81); #434's
instanceLocationstrings stay plain text.Checklist (head
b929c58):std/json/tests/pointer.test.trbcovers the RFC 6901 section 5 examples in string and fragment form, round trips,~01ordering, navigation and every refusal listed in #435. CI green on this head (tier A, bootstrap, gates, pdisc).-is refused byget, percent-decoding bounds and UTF-8 validation are handled.docs/standard-library/json.mdsection with declarations and atrb checkexample;skills/copy regenerated; pdisc green.std/json, re-exported fromlib.trb; no new boundary.Non-blocking: none.
JsonPointer(RFC 6901) instd/json(step 1 of #81) #435