Documentation ¶
Index ¶
- Constants
- Variables
- func GetSubobjectBytes(data []byte, key string) ([]byte, error)
- func JsonParserGetArrayIntOneOnly(data []byte, key string) (int, error)
- func JsonParserGetArrayString(data []byte, key string) ([]string, error)
- func JsonParserGetArrayStringOneOnly(data []byte, key string) (string, error)
- func MarshalBase64(i interface{}) (string, error)
- func MarshalSimple(v interface{}, prefix, indent string) ([]byte, error)
- func MustGetSubobjectBytes(data []byte, key string) []byte
- func MustMarshal(i interface{}, embedError bool) []byte
- func MustMarshalIndent(i interface{}, prefix, indent string, embedError bool) []byte
- func MustMarshalSimple(v interface{}, prefix, indent string) []byte
- func MustMarshalString(i interface{}, embedError bool) string
- func PrettyPrint(b []byte, prefix, indent string) []byte
- func PrettyPrintReader(r io.Reader, prefix, indent string) ([]byte, error)
- func PropertyNameEscape(s string) string
- func PropertyNameUnescape(s string) string
- func ReadFile(filename string, v interface{}) ([]byte, error)
- func UnmarshalReader(r io.Reader, iface interface{}) ([]byte, error)
- type Bool
- type Int64
Constants ¶
View Source
const ( EscapedTilde = "~0" EscapedSlash = "~1" )
Variables ¶
View Source
var ( MarshalPrefix = "" MarshalIndent = " " )
Functions ¶
func GetSubobjectBytes ¶ added in v0.0.5
func MarshalBase64 ¶
func MarshalSimple ¶
func MustGetSubobjectBytes ¶ added in v0.0.5
func MustMarshal ¶
func MustMarshalIndent ¶
func MustMarshalSimple ¶
func MustMarshalString ¶
func PrettyPrint ¶
PrettyPrint converts a JSON byte array into a prettified byte array.
func PrettyPrintReader ¶ added in v0.0.15
func PropertyNameEscape ¶ added in v0.0.15
PropertyNameEscape escapes JSON property name using JSON Schema rules.
func PropertyNameUnescape ¶ added in v0.0.15
PropertyNameUnescape unescapes JSON property name using JSON Schema rules.
Types ¶
type Bool ¶ added in v0.0.12
type Bool bool
Bool implements a tolerant reader for `bool` type.
func (*Bool) UnmarshalJSON ¶ added in v0.0.12
Click to show internal directories.
Click to hide internal directories.