Function xml_to_json

Source
pub fn xml_to_json(xml: &str, omit_empty: bool) -> Result<String, ScjsonError>
Expand description

Convert an SCXML string to scjson.

§Parameters

  • xml: XML input string.
  • omit_empty: Remove empty fields when true.

§Returns

JSON string representing the document.