MCPcopy
hub / github.com/noahgorstein/jqp / IsValidJSONLines

Function IsValidJSONLines

tui/utils/json.go:67–74  ·  view source on GitHub ↗
(input []byte)

Source from the content-addressed store, hash-verified

65}
66
67func IsValidJSONLines(input []byte) error {
68 maxBufferSize := 100 * 1024 * 1024 // 100MB
69 err := ScanLinesWithDynamicBufferSize(input, maxBufferSize, IsValidJSON)
70 if err != nil {
71 return err
72 }
73 return nil
74}
75
76func indentJSON(input *[]byte, output *bytes.Buffer) error {
77 err := IsValidJSON(*input)

Callers 1

IsValidInputFunction · 0.85

Calls 1

Tested by

no test coverage detected