Decode tokens only when dereferencing object property name

Because array index can never contain '~' ('~0') or '/' ('~1')
1 file changed
tree: 49eae061beb5bd4504fb7dcc4f16d9ccab813f52
  1. LICENSE-APACHE-2.0.txt
  2. pointer.go
  3. pointer_test.go
  4. README.md
README.md

gojsonpointer

An implementation of JSON Pointer - Go language

References

http://tools.ietf.org/html/draft-ietf-appsawg-json-pointer-07

Note

The 4.Evaluation part of the previous reference, starting with ‘If the currently referenced value is a JSON array, the reference token MUST contain either...’ is not implemented.