New creates a new json pointer from its string representation.
(jsonPointerString string)
| 47 | |
| 48 | // New creates a new json pointer from its string representation. |
| 49 | func New(jsonPointerString string) (Pointer, error) { |
| 50 | var p Pointer |
| 51 | err := p.parse(jsonPointerString) |
| 52 | |
| 53 | return p, err |
| 54 | } |
| 55 | |
| 56 | // Get uses the pointer to retrieve a value from a JSON document. |
| 57 | // |