Documentation
¶
Overview ¶
Package jsontext provides a fast JSON encoder providing only the necessary features for qlog encoding. No efforts are made to add any features beyond qlog's requirements.
The API aims to be compatible with the standard library's encoding/json/jsontext package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BeginArray = Token{/* contains filtered or unexported fields */}
BeginArray is the begin array token.
View Source
var BeginObject = Token{/* contains filtered or unexported fields */}
BeginObject is the begin object token.
View Source
var EndArray = Token{/* contains filtered or unexported fields */}
EndArray is the end array token.
View Source
var EndObject = Token{/* contains filtered or unexported fields */}
EndObject is the end object token.
View Source
var False = Bool(false)
False is a false token.
View Source
var Null = Token{/* contains filtered or unexported fields */}
Null is a null token.
View Source
var True = Bool(true)
True is a true token.
Functions ¶
This section is empty.
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder encodes JSON to an io.Writer.
func (*Encoder) WriteToken ¶
WriteToken writes a token to the encoder.
Click to show internal directories.
Click to hide internal directories.