Skip to main content

try_parse_json_str

Function try_parse_json_str 

Source
pub fn try_parse_json_str(value: &Value) -> Option<Value>
Expand description

Try to parse a JSON string Value into a structured Value.

If value is a Value::String containing valid JSON (object or array), returns the parsed Value. Otherwise returns None.

This is the single source of truth for the “auto-parse JSON strings” pattern used throughout the binding system (jsonpath, resolve, runner).