Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format int
Format describes the JSON format of input data.
func DetectFormat ¶
DetectFormat examines the first non-whitespace bytes to determine the format. [ -> FormatJSON (array), single {...} -> FormatJSON, multiple {...}\n{...} -> FormatJSONL.
type Object ¶
type Object struct {
Value any // the parsed JSON value
File string // source filename ("stdin" for stdin)
Index int // 0-based index within the file
}
Object represents one JSON object with its source metadata.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader streams JSON objects from files or stdin.
Click to show internal directories.
Click to hide internal directories.