json

package

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