Discover Packages
github.com/chuck7000/go-swagger
jsonpointer
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Dec 25, 2015
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
gojsonpointer
An implementation of JSON Pointer - Go language
Status
Completed YES
Tested YES
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.
Expand ▾
Collapse ▴
Documentation
¶
Escape escapes a pointer reference token string
GetForToken gets a value for a json pointer token 1 level deep
Unescape unescapes a json pointer reference token string to the original representation
type JSONPointable interface {
JSONLookup(string ) (interface{}, error )
}
JSONPointable is an interface for structs to implement when they need to customize the
json pointer process
Pointer the json pointer reprsentation
New creates a new json pointer for the given string
DecodedTokens returns the decoded tokens
Get uses the pointer to retrieve a value from a JSON document
IsEmpty returns true if this is an empty json pointer
this indicates that it points to the root document
Pointer to string representation function
Source Files
¶
Click to show internal directories.
Click to hide internal directories.