Module json

Module json 

Source

Modules§

__internal_unstable_do_not_depend_on_these

Macros§

contains_each
Matches a JSON array that contains elements matched by the given matchers, in any order.
elements_are
Matches a JSON array with elements that satisfy the given matchers, in order.
is_contained_in
Matches a JSON array where every element matches one of the provided matchers.
matches_pattern
Matches a JSON object by specifying a pattern of key-value matchers, similar to GoogleTest’s matches_pattern! macro for Rust structs.
pat
Matches a JSON object by specifying a pattern of key-value matchers, similar to GoogleTest’s matches_pattern! macro for Rust structs.
primitive
Matches a JSON value (string, number, or boolean) against the given matcher.
unordered_elements_are
Matches a JSON array whose elements, in any order, have a 1:1 correspondence with the provided matchers.
valueDeprecated
Matches a JSON value (string, number, or boolean) against the given matcher.

Functions§

any_valueDeprecated
Matches any JSON value except null.
is_array
Matches JSON array values.
is_boolean
Matches JSON boolean values.
is_not_null
Matches any JSON value except null.
is_null
Matches any JSON value except null.
is_number
Matches JSON number values.
is_object
Matches JSON object values.
is_string
Matches JSON string values.
predicate
Creates a custom JSON matcher from an arbitrary predicate function.