Documentation
¶
Overview ¶
Package jsonl implements source.Source over JSON Lines: one JSON object per line. Each line becomes a Record whose Data is the original bytes and whose Fields is the decoded object, tagged domain.KindJSON. Numbers are decoded as json.Number so large integer IDs keep their exact value instead of rounding through float64. Blank lines are skipped; a non-blank line that is not a single JSON object is a clear error.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source yields one Record per JSON object in the underlying reader.
func New ¶
New returns a Source reading JSON Lines from r. name labels the stream in record IDs (e.g. "stdin", a file path). If r is an io.Closer it is closed by Close.