(input []byte)
| 65 | } |
| 66 | |
| 67 | func 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 | |
| 76 | func indentJSON(input *[]byte, output *bytes.Buffer) error { |
| 77 | err := IsValidJSON(*input) |
no test coverage detected