Documentation ¶
Overview ¶
Package joe provides helper types and methods for encoding and decoding JSON.
joe provides a simple API to access unstructured and ad hoc JSON objects that is parsed generically by json.Unmarshal. When a inputs are unstructured, it can be difficult to define Go structs that map cleanly onto the JSON input.
Index ¶
- type Array
- type Bool
- type Interface
- type Number
- type Object
- func (Object) Bool() (bool, error)
- func (o Object) Get(field string) (Interface, error)
- func (o Object) GetArray(field string) (Array, error)
- func (o Object) GetBool(field string) (bool, error)
- func (o Object) GetNumber(field string) (float64, error)
- func (o Object) GetObject(field string) (Object, error)
- func (o Object) GetString(field string) (string, error)
- func (Object) Index(k int) (Interface, error)
- func (Object) Number() (float64, error)
- func (Object) String() (string, error)
- func (o *Object) UnmarshalJSON(b []byte) error
- type String
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Object ¶
func (*Object) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.