Skip to content

proposal: encoding/json: add EvalJSONPointer function to support RFC 6901 #42009

@baijum

Description

@baijum

RFC 6901 describes the JSON Pointer standard.

JSON Pointer defines a string syntax for identifying a specific value within a JSON document.

More advanced query languages like JSONPath and JMESPath is not required in many cases. Also including it as part of the standard library would be an overkill.

Since JSON Pointer is a small standard, the implementation would be easy.

The API could be something like this:

func EvalJSONPointer(v interface{}, format string) ([]byte, error) {...}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions