Simdjsont.Ndjson
simdjsont · API reference
val decode_seq :
?batch_size:int ->
'a Codec.t ->
Raw.buffer ->
len:int ->
('a, string) result Seq.tdecode_seq ?batch_size codec buf ~len lazily decodes each document in the first len bytes of the NDJSON bigstring buf using codec. Parsing is zero-copy when buf is already padded.
val decode_string_seq :
?batch_size:int ->
'a Codec.t ->
string ->
('a, string) result Seq.tLike decode_seq for a string input.
val values :
?batch_size:int ->
Raw.buffer ->
len:int ->
(Json.t, string) result Seq.tvalues ?batch_size buf ~len lazily decodes each document in the NDJSON bigstring buf into a Json.t value, without needing a codec. Equivalent to decode_seq Decode.value.
val values_of_string :
?batch_size:int ->
string ->
(Json.t, string) result Seq.tLike values for a string input.