parseJsonByLine

Parses JSON value in each line from a Range of buffers.

  1. auto parseJsonByLine(Input input, sizediff_t initBufferLength)
  2. auto parseJsonByLine(Input input)
    parseJsonByLine
    (
    Flag!"spaces" spaces = Yes.spaces
    Flag!"throwOnInvalidLines" throwOnInvalidLines = No.throwOnInvalidLines
    Input
    )
    (
    Input input
    )

Parameters

spaces

adds support for spaces beetwen json tokens. Default value is Yes.

throwOnInvalidLines

throws an SerdeException on invalid lines if Yes and ignore invalid lines if No. Default value is No.

input Input

input range composed of elements type of const(ubyte)[] or string / const(char)[]. chunks can use the same buffer for each chunk.

Return Value

Type: auto

Input range composed of ASDF values. Each value uses the same internal buffer.

Meta