package
0.0.0-20250127084819-b708ef71d2ab
Repository: https://github.com/arnodel/jsonstream.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StartStream uses the source to start producing items and returns a new json stream where these items are produced.
No description provided by the author
No description provided by the author
TransformStream applies the transformer to the incoming json stream, returning a new json stream.
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
Elision is not part of the JSON syntax but is used to remove contents from an array or an object but signal to the user that the content has been 'elided'.
EndArray represents the end of a JSON array (introduced by '}') Values of type *EndArray implement the StreamItem interface.
EndObject represents the end of a JSON object (introduced by '}') Values of type *EndObject implement the StreamItem interface.
Scalar is the type used to represent all scalar JSON values, i.e.
No description provided by the author
StartArray represents the start of a JSON array (introduced by '[').
StartObject represents the start of a JSON object (introduced by '{').
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
A StreamTransformer can transform a json stream into another.
A Token is an item in a stream that encodes a JSON value For example, the JSON value
{"id": 123, "tags": ["important", "new"]}
would be represented by the stream of Token (in pseudocode for clarity):
{ -> StartObject "id": -> Scalar("id", String) 123, -> Scalar(123, Number) "tags": -> Scalar("tags", String) [ -> StartArray "important", -> Scalar("important", String) "new" -> Scalar("new", String) ] -> EndArray } -> EndObject
encoded of a JSON input into a stream of Token values, processing of this stream and outputting the outcome can be done concurrently using channels of Token values.
No description provided by the author
No description provided by the author
# Type aliases
ScalarType encodes the four possible JSON scalar types.