From 1086297f134864058fa450f76d7cac30a2372f46 Mon Sep 17 00:00:00 2001 From: miloyip Date: Mon, 4 May 2015 17:05:01 +0800 Subject: [PATCH] Fix Pointer guide punctuations --- doc/pointer.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/doc/pointer.md b/doc/pointer.md index 7388097..df9e953 100644 --- a/doc/pointer.md +++ b/doc/pointer.md @@ -21,9 +21,9 @@ A JSON Pointer is a list of zero-to-many tokens, each prefixed by `/`. Each toke The following JSON Pointers resolve this JSON as: 1. `"/foo"` → `[ "bar", "baz" ]` -2. `"/foo/0` → `"bar"` -3. `"/foo/1` → `"baz"` -4. `"/pi` → 3.1416 +2. `"/foo/0"` → `"bar"` +3. `"/foo/1"` → `"baz"` +4. `"/pi"` → 3.1416 Note that, an empty JSON Pointer `""` (zero token) resolves to the whole JSON. @@ -180,7 +180,7 @@ String Representation | URI Fragment Representation | Pointer Tokens (UTF-8) `"/m~0n"` | `"#/m~0n"` | `{"m~n"}` `"/ "` | `"#/%20"` | `{" "}` `"/\0"` | `"#/%00"` | `{"\0"}` -`"/\xE2\x82\xAC"` | `"#/%E2%82%AC` | `{"\xE2\x82\xAC"}` +`"/\xE2\x82\xAC"` | `"#/%E2%82%AC"` | `{"\xE2\x82\xAC"}` RapidJSON fully support URI fragment representation. It automatically detects the pound sign during parsing.