Skip to main content

xml_to_json

Function xml_to_json 

Source
pub fn xml_to_json(xml: &str) -> Result<Value, FaucetError>
Expand description

Convert an XML string to a JSON value.

Elements become objects, repeated elements become arrays, attributes are stored with @ prefix, and text content uses #text.