(|>) [Yojson.Basic.Util] |
Forward pipe operator; useful for composing JSON access functions
without too many parentheses
|
B | |
biniou_of_json [Yojson_biniou] |
Converts from JSON to biniou.
|
C | |
compact [Yojson.Raw] |
Combined parser and printer.
|
compact [Yojson.Safe] |
Combined parser and printer.
|
compact [Yojson.Basic] |
Combined parser and printer.
|
convert_each [Yojson.Basic.Util] |
The conversion functions above cannot be used with
map , because they do
not return JSON values.
|
F | |
filter_assoc [Yojson.Basic.Util] |
Expects JSON objects and unwraps them.
|
filter_bool [Yojson.Basic.Util] |
Expects JSON booleans and unwraps them.
|
filter_float [Yojson.Basic.Util] |
Expects JSON floats (
`Float nodes) and unwraps them.
|
filter_index [Yojson.Basic.Util] |
Expects JSON arrays and returns all their elements existing at the given
position.
|
filter_int [Yojson.Basic.Util] |
Expects JSON integers (
`Int nodes) and unwraps them.
|
filter_list [Yojson.Basic.Util] |
Expects JSON arrays and unwraps them.
|
filter_map [Yojson.Basic.Util] | filter_map f l maps each element of the list l to an optional value
using function f and unwraps the resulting values.
|
filter_member [Yojson.Basic.Util] |
Expects JSON objects and returns all the fields of the given name
(at most one field per object).
|
filter_number [Yojson.Basic.Util] |
Expects JSON numbers (
`Int or `Float ) and unwraps them.
|
filter_string [Yojson.Basic.Util] |
Expects JSON strings and unwraps them.
|
flatten [Yojson.Basic.Util] |
Expects JSON arrays and returns all their elements as a single
list.
|
from_channel [Yojson.Raw] |
Read a JSON value from a channel.
|
from_channel [Yojson.Safe] |
Read a JSON value from a channel.
|
from_channel [Yojson.Basic] |
Read a JSON value from a channel.
|
from_file [Yojson.Raw] |
Read a JSON value from a file.
|
from_file [Yojson.Safe] |
Read a JSON value from a file.
|
from_file [Yojson.Basic] |
Read a JSON value from a file.
|
from_lexbuf [Yojson.Raw] |
Read a JSON value from a lexbuf.
|
from_lexbuf [Yojson.Safe] |
Read a JSON value from a lexbuf.
|
from_lexbuf [Yojson.Basic] |
Read a JSON value from a lexbuf.
|
from_string [Yojson.Raw] |
Read a JSON value from a string.
|
from_string [Yojson.Safe] |
Read a JSON value from a string.
|
from_string [Yojson.Basic] |
Read a JSON value from a string.
|
I | |
index [Yojson.Basic.Util] | index i arr returns the value at index i in the JSON array arr .
|
init_lexer [Yojson.Raw] |
This alias is provided for backward compatibility.
|
init_lexer [Yojson.Safe] |
This alias is provided for backward compatibility.
|
init_lexer [Yojson.Basic] |
This alias is provided for backward compatibility.
|
init_lexer [Yojson] |
Create a fresh lexer_state record.
|
J | |
json_error [Yojson] | |
json_of_biniou [Yojson_biniou] |
Converts from biniou to JSON.
|
L | |
linestream_from_channel [Yojson.Raw] |
Input a sequence of JSON values, one per line, from a channel.
|
linestream_from_channel [Yojson.Safe] |
Input a sequence of JSON values, one per line, from a channel.
|
linestream_from_channel [Yojson.Basic] |
Input a sequence of JSON values, one per line, from a channel.
|
linestream_from_file [Yojson.Raw] |
Input a sequence of JSON values, one per line, from a file.
|
linestream_from_file [Yojson.Safe] |
Input a sequence of JSON values, one per line, from a file.
|
linestream_from_file [Yojson.Basic] |
Input a sequence of JSON values, one per line, from a file.
|
M | |
map [Yojson.Basic.Util] | map f arr calls the function f on each element of the JSON array
arr , and returns a JSON array containing the results.
|
member [Yojson.Basic.Util] | member k obj returns the value associated with the key k in the JSON
object obj , or `Null if k is not present in obj .
|
P | |
prettify [Yojson.Raw] |
Combined parser and pretty-printer.
|
prettify [Yojson.Safe] |
Combined parser and pretty-printer.
|
prettify [Yojson.Basic] |
Combined parser and pretty-printer.
|
pretty_format [Yojson.Raw] |
Convert into a pretty-printable tree.
|
pretty_format [Yojson.Safe] |
Convert into a pretty-printable tree.
|
pretty_format [Yojson.Basic] |
Convert into a pretty-printable tree.
|
pretty_format [Yojson] |
Convert into a pretty-printable tree.
|
pretty_to_channel [Yojson.Raw] |
Pretty-print to a channel.
|
pretty_to_channel [Yojson.Safe] |
Pretty-print to a channel.
|
pretty_to_channel [Yojson.Basic] |
Pretty-print to a channel.
|
pretty_to_channel [Yojson] |
Pretty-print to a channel.
|
pretty_to_string [Yojson.Raw] |
Pretty-print into a string.
|
pretty_to_string [Yojson.Safe] |
Pretty-print into a string.
|
pretty_to_string [Yojson.Basic] |
Pretty-print into a string.
|
pretty_to_string [Yojson] |
Pretty-print into a string.
|
S | |
stream_from_channel [Yojson.Raw] |
Input a sequence of JSON values from a channel.
|
stream_from_channel [Yojson.Safe] |
Input a sequence of JSON values from a channel.
|
stream_from_channel [Yojson.Basic] |
Input a sequence of JSON values from a channel.
|
stream_from_file [Yojson.Raw] |
Input a sequence of JSON values from a file.
|
stream_from_file [Yojson.Safe] |
Input a sequence of JSON values from a file.
|
stream_from_file [Yojson.Basic] |
Input a sequence of JSON values from a file.
|
stream_from_lexbuf [Yojson.Raw] |
Input a sequence of JSON values from a lexbuf.
|
stream_from_lexbuf [Yojson.Safe] |
Input a sequence of JSON values from a lexbuf.
|
stream_from_lexbuf [Yojson.Basic] |
Input a sequence of JSON values from a lexbuf.
|
stream_from_string [Yojson.Raw] |
Input a sequence of JSON values from a string.
|
stream_from_string [Yojson.Safe] |
Input a sequence of JSON values from a string.
|
stream_from_string [Yojson.Basic] |
Input a sequence of JSON values from a string.
|
stream_to_channel [Yojson.Raw] |
Write a newline-separated sequence of compact one-line JSON values to
a channel.
|
stream_to_channel [Yojson.Safe] |
Write a newline-separated sequence of compact one-line JSON values to
a channel.
|
stream_to_channel [Yojson.Basic] |
Write a newline-separated sequence of compact one-line JSON values to
a channel.
|
stream_to_channel [Yojson] |
Write a newline-separated sequence of compact one-line JSON values to
a channel.
|
stream_to_file [Yojson.Raw] |
Write a newline-separated sequence of compact one-line JSON values to
a file.
|
stream_to_file [Yojson.Safe] |
Write a newline-separated sequence of compact one-line JSON values to
a file.
|
stream_to_file [Yojson.Basic] |
Write a newline-separated sequence of compact one-line JSON values to
a file.
|
stream_to_file [Yojson] |
Write a newline-separated sequence of compact one-line JSON values to
a file.
|
stream_to_outbuf [Yojson.Raw] |
Write a newline-separated sequence of compact one-line JSON values to
an existing buffer.
|
stream_to_outbuf [Yojson.Safe] |
Write a newline-separated sequence of compact one-line JSON values to
an existing buffer.
|
stream_to_outbuf [Yojson.Basic] |
Write a newline-separated sequence of compact one-line JSON values to
an existing buffer.
|
stream_to_outbuf [Yojson] |
Write a newline-separated sequence of compact one-line JSON values to
an existing buffer.
|
stream_to_string [Yojson.Raw] |
Write a newline-separated sequence of compact one-line JSON values to
a string.
|
stream_to_string [Yojson.Safe] |
Write a newline-separated sequence of compact one-line JSON values to
a string.
|
stream_to_string [Yojson.Basic] |
Write a newline-separated sequence of compact one-line JSON values to
a string.
|
stream_to_string [Yojson] |
Write a newline-separated sequence of compact one-line JSON values to
a string.
|
T | |
to_assoc [Yojson.Basic.Util] |
Extract the items of a JSON array or raise
Type_error .
|
to_basic [Yojson.Safe] |
Tuples are converted to JSON arrays,
Variants are converted to JSON strings or arrays of a string (constructor)
and a json value (argument).
|
to_bool [Yojson.Basic.Util] |
Extract a boolean value or raise
Type_error .
|
to_bool_option [Yojson.Basic.Util] |
Extract
Some boolean value,
return None if the value is null,
or raise Type_error otherwise.
|
to_channel [Yojson.Raw] |
Write a compact JSON value to a channel.
|
to_channel [Yojson.Safe] |
Write a compact JSON value to a channel.
|
to_channel [Yojson.Basic] |
Write a compact JSON value to a channel.
|
to_channel [Yojson] |
Write a compact JSON value to a channel.
|
to_file [Yojson.Raw] |
Write a compact JSON value to a file.
|
to_file [Yojson.Safe] |
Write a compact JSON value to a file.
|
to_file [Yojson.Basic] |
Write a compact JSON value to a file.
|
to_file [Yojson] |
Write a compact JSON value to a file.
|
to_float [Yojson.Basic.Util] |
Extract a float value or raise
Type_error .
|
to_float_option [Yojson.Basic.Util] |
Extract
Some float value,
return None if the value is null,
or raise Type_error otherwise.
|
to_int [Yojson.Basic.Util] |
Extract an int from a JSON int or raise
Type_error .
|
to_int_option [Yojson.Basic.Util] |
Extract
Some int from a JSON int,
return None if the value is null,
or raise Type_error otherwise.
|
to_list [Yojson.Basic.Util] |
Extract a list from JSON array or raise
Type_error .
|
to_number [Yojson.Basic.Util] |
Extract a number or raise
Type_error .
|
to_number_option [Yojson.Basic.Util] |
Extract
Some number,
return None if the value is null,
or raise Type_error otherwise.
|
to_option [Yojson.Basic.Util] |
Return
None if the JSON value is null or map the JSON value
to Some value using the provided function.
|
to_outbuf [Yojson.Raw] |
Write a compact JSON value to an existing buffer.
|
to_outbuf [Yojson.Safe] |
Write a compact JSON value to an existing buffer.
|
to_outbuf [Yojson.Basic] |
Write a compact JSON value to an existing buffer.
|
to_outbuf [Yojson] |
Write a compact JSON value to an existing buffer.
|
to_output [Yojson.Raw] |
Write a compact JSON value to an OO channel.
|
to_output [Yojson.Safe] |
Write a compact JSON value to an OO channel.
|
to_output [Yojson.Basic] |
Write a compact JSON value to an OO channel.
|
to_output [Yojson] |
Write a compact JSON value to an OO channel.
|
to_string [Yojson.Raw] |
Write a compact JSON value to a string.
|
to_string [Yojson.Safe] |
Write a compact JSON value to a string.
|
to_string [Yojson.Basic.Util] |
Extract a string from a JSON string or raise
Type_error .
|
to_string [Yojson.Basic] |
Write a compact JSON value to a string.
|
to_string [Yojson] |
Write a compact JSON value to a string.
|
to_string_option [Yojson.Basic.Util] |
Extract
Some string from a JSON string,
return None if the value is null,
or raise Type_error otherwise.
|
V | |
version [Yojson] |