Categorygithub.com/go-openapi/jsonpointer
modulepackage
0.21.0
Repository: https://github.com/go-openapi/jsonpointer.git
Documentation: pkg.go.dev

# README

gojsonpointer Build Status codecov

Slack Status license Go Reference Go Report Card

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.

# Functions

Escape escapes a pointer reference token string.
GetForToken gets a value for a json pointer token 1 level deep.
New creates a new json pointer for the given string.
SetForToken gets a value for a json pointer token 1 level deep.
Unescape unescapes a json pointer reference token string to the original representation.

# Structs

Pointer the json pointer reprsentation.

# Interfaces

JSONPointable is an interface for structs to implement when they need to customize the json pointer process.
JSONSetable is an interface for structs to implement when they need to customize the json pointer process.