Skip to main content

extract_response_body

Function extract_response_body 

Source
pub fn extract_response_body(value: &Value, path: &str) -> Option<Value>
Expand description

Extract a (possibly dotted) subfield of the response JSON for response_body.

Returns None when any path segment is missing, letting the caller distinguish a misconfigured path from a field that is legitimately null.