Module pact_models::json_utils [−][src]
Expand description
Collection of utilities for working with JSON
Traits
Trait to convert a JSON structure to a number
Functions
Returns the body from the JSON struct with the provided field name
Look up a field and return it as a string value
Hash function for JSON struct
Returns the headers from a JSON struct as Map String -> Vec
Converts the headers map into a JSON struct
If the JSON value is empty
Deep merges the other value into the given value
Converts an optional JSON struct to a usize, returning None
if it is not a numeric type.
Converts the JSON struct to a String, first checking if it is a JSON String