json

package
v1.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2021 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MarshalToString     = json.MarshalToString
	Marshal             = json.Marshal
	MarshalIndent       = json.MarshalIndent
	Unmarshal           = json.Unmarshal
	UnmarshalFromString = json.UnmarshalFromString
	NewDecoder          = json.NewDecoder
	NewEncoder          = json.NewEncoder
	Get                 = json.Get
)

Functions

This section is empty.

Types

type Patch

type Patch struct {
	// Type  JsonPatchType `json:"-"`
	Op    PatchOp     `json:"op"`
	Path  string      `json:"path"`
	Value interface{} `json:"value,omitempty"`
}

type PatchOp

type PatchOp string
var (
	Add     PatchOp = "add"
	Replace PatchOp = "replace"
	Remove  PatchOp = "remove"
)

type Request

type Request struct {
	// contains filtered or unexported fields
}

func NewJSONRequest

func NewJSONRequest(req *http.Request) (*Request, error)

func (*Request) FindObject

func (j *Request) FindObject(jsonpath ...interface{}) jsoniter.Any

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL