Documentation
¶
Overview ¶
Package phperjson is PHP flavored encoding/json package.
Index ¶
- func Compact(dst *bytes.Buffer, src []byte) error
- func HTMLEscape(dst *bytes.Buffer, src []byte)
- func Indent(dst *bytes.Buffer, src []byte, prefix, indent string) error
- func Marshal(v interface{}) ([]byte, error)
- func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error)
- func Unmarshal(data []byte, v interface{}) error
- func Valid(data []byte) bool
- type Decoder
- type Delim
- type Encoder
- type InvalidUTF8Error
- type InvalidUnmarshalError
- type Marshaler
- type MarshalerError
- type Number
- type RawMessage
- type SyntaxError
- type Token
- type UnmarshalFieldError
- type UnmarshalTypeError
- type Unmarshaler
- type UnsupportedTypeError
- type UnsupportedValueError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTMLEscape ¶
HTMLEscape is an alias for json.HTMLEscape.
func MarshalIndent ¶
MarshalIndent is an alias for json.MarshalIndent.
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder is a wrapper of json.Decoder.
func NewDecoder ¶
func (*Decoder) DisallowUnknownFields ¶
func (dec *Decoder) DisallowUnknownFields()
type InvalidUTF8Error ¶
type InvalidUTF8Error = json.InvalidUTF8Error
InvalidUTF8Error is an alias for json.InvalidUTF8Error.
type InvalidUnmarshalError ¶
type InvalidUnmarshalError = json.InvalidUnmarshalError
InvalidUnmarshalError is an alias for json.InvalidUnmarshalError.
type MarshalerError ¶
type MarshalerError = json.MarshalerError
MarshalerError is an alias for json.MarshalerError.
type UnmarshalFieldError ¶
type UnmarshalFieldError = json.UnmarshalFieldError
UnmarshalFieldError is an alias for json.UnmarshalFieldError.
type UnmarshalTypeError ¶
type UnmarshalTypeError = json.UnmarshalTypeError
UnmarshalTypeError is an alias for json.UnmarshalTypeError.
type Unmarshaler ¶
type Unmarshaler = json.Unmarshaler
Unmarshaler is an alias for json.Unmarshaler.
type UnsupportedTypeError ¶
type UnsupportedTypeError = json.UnsupportedTypeError
UnsupportedTypeError is an alias for json.UnsupportedTypeError.
type UnsupportedValueError ¶
type UnsupportedValueError = json.UnsupportedValueError
UnsupportedValueError is an alias for json.UnsupportedValueError.