Expand description
Collection of utilities for working with JSON
Traits§
- Json
ToNum - Trait to convert a JSON structure to a number
Functions§
- body_
from_ json - Returns the body from the JSON struct with the provided field name
- get_
field_ as_ string - Look up a field and return it as a string value
- hash_
json - Hash function for JSON struct
- headers_
from_ json - Returns the headers from a JSON struct as Map String -> Vec
- headers_
to_ json - Converts the headers map into a JSON struct
- is_
empty - If the JSON value is empty
- json_
deep_ merge - Deep merges the other value into the given value
- json_
to_ num - Converts an optional JSON struct to a usize, returning
Noneif it is not a numeric type. - json_
to_ string - Converts the JSON struct to a String, first checking if it is a JSON String