Documentation
¶
Overview ¶
Package jason helps deal with dynamic JSON.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Array ¶
type Array = []any
Array is a dynamic JSON array: an ordered collection of values.
Example of a JSON array literal:
jason.Array{10, true}
type Number ¶
Number is an encoded JSON number.
It has arbitrary precision, and is easily converted to a float64 or int64.
Example of a JSON number literal:
jason.Number("10")
type Object ¶
Object is a dynamic JSON object: an unordered set of name/value pairs.
Example of a JSON object literal:
jason.Object{"abc": true}
type Value ¶
type Value []byte
Value is an encoded JSON value.
Like json.RawMessage, it implements json.Marshaler and json.Unmarshaler and can be used to delay/precompute JSON decoding/encoding.
Example of a JSON value literal:
jason.Value("false")
func (Value) MarshalJSON ¶
MarshalJSON returns j as the JSON encoding of j.
func (*Value) UnmarshalJSON ¶
UnmarshalJSON sets *j to a copy of data.