From f928944d64eb411214993f1096aad134c558bc78 Mon Sep 17 00:00:00 2001 From: Nigel Tao Date: Mon, 2 Mar 2020 14:46:03 +1100 Subject: [PATCH] Add test/data/rfc-6901-json-pointer.json --- test/data/README.md | 4 ++++ test/data/rfc-6901-json-pointer.json | 12 ++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 test/data/rfc-6901-json-pointer.json diff --git a/test/data/README.md b/test/data/README.md index d76d3f9a..156c9d7d 100644 --- a/test/data/README.md +++ b/test/data/README.md @@ -97,6 +97,10 @@ which is in the public domain. `pjw-thumbnail.*` are various encodings of an image derived from an iconic, original photo of Peter J. Weinberger by Rob Pike . +`rfc-6901-json-pointer.json` is the example JSON document given in the [RFC +6901 "JavaScript Object Notation (JSON) +Pointer"](https://tools.ietf.org/rfc/rfc6901.txt) specification. + `romeo.txt` is an excerpt of Shakespeare's "Romeo and Juliet", copied from [shakespeare.mit.edu](http://shakespeare.mit.edu/romeo_juliet/romeo_juliet.2.2.html). diff --git a/test/data/rfc-6901-json-pointer.json b/test/data/rfc-6901-json-pointer.json new file mode 100644 index 00000000..d88f8470 --- /dev/null +++ b/test/data/rfc-6901-json-pointer.json @@ -0,0 +1,12 @@ +{ + "foo": ["bar", "baz"], + "": 0, + "a/b": 1, + "c%d": 2, + "e^f": 3, + "g|h": 4, + "i\\j": 5, + "k\"l": 6, + " ": 7, + "m~n": 8 +}