Documentation
¶
Overview ¶
Package json implements the sq driver for JSON. There are three supported types: - JSON: plain old JSON - JSONA: JSON Array, where each record is an array of JSON values on its own line. - JSONL: JSON Lines, where each record a JSON object on its own line.
Index ¶
- Constants
- func DetectJSON(ctx context.Context, log lg.Log, openFn source.FileOpenFunc) (detected source.Type, score float32, err error)
- func DetectJSONA(ctx context.Context, log lg.Log, openFn source.FileOpenFunc) (detected source.Type, score float32, err error)
- func DetectJSONL(ctx context.Context, log lg.Log, openFn source.FileOpenFunc) (detected source.Type, score float32, err error)
- type Provider
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func DetectJSON ¶
func DetectJSON(ctx context.Context, log lg.Log, openFn source.FileOpenFunc) (detected source.Type, score float32, err error, )
DetectJSON implements source.TypeDetectFunc. The function returns TypeJSON for two varieties of input:.
Types ¶
Click to show internal directories.
Click to hide internal directories.