= 1024" x-on:close-sidebar="sidebar=window.innerWidth >= 1024 && true">
ON THIS PAGE
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
Parameters
Signature
type nonrec json = json
decode
decodes the byte stream provided by reader
. reader buf len
reads up to len
bytes into buf
and returns the number of bytes read.
decode_exn
- the same as decode
but raises on error
decode_string
- decode a string
to a json
type
decode_string_exn
- the same as decode_sting
but raises on error
encode
encodes the supplied json
type using writer[ to output the text.
[writer buf len] writes [len] bytes from [buf] and returns [init].
returns and error if a float [NaN] or [Inf] is encountered in the [json]
type
encode_exn
- the same as encode
but raises on error
encode_string
- encode a json
type to a string
encode_string_exn
- the same as encode_string
but raises on error