Documentation ¶
Overview ¶
Package json implements encoding and decoding of JSON as defined in RFC 7159.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Marshal marshal v to string Marshal = json.Marshal // MarshalIndent marshal v to string with indent MarshalIndent = json.MarshalIndent // NewDecoder returns a new decoder that reads from r. // // The decoder introduces its own buffering and may // read data from r beyond the JSON values requested. NewDecoder = json.NewDecoder )
Functions ¶
func MarshalToString ¶
MarshalToString marshal v to string
func UnmarshalFromString ¶
UnmarshalFromString unmarshal json from string, support comment
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.