Function sdjwt::parse_yaml

source ·
pub fn parse_yaml(yaml_str: &str) -> Result<(Value, Vec<String>), Error>
Expand description

Parses claims as a YAML string, converts it to JSON, and collects paths of elements tagged with !sd.

§Arguments

  • yaml_str - A string slice that holds the YAML data.

§Returns

A Result containing a tuple of JSON value and a vector of tagged paths, or an error.