hydra.json.yaml.decode module

YAML-to-JSON decoding. Converts YAML Nodes to JSON Values (may fail for non-JSON YAML), and YAML Nodes to Hydra Terms via JSON.

hydra.json.yaml.decode.from_yaml(types: Mapping[Name, Type], tname: Name, typ: Type, node: Node_) object

Decode a YAML node to a Hydra term via JSON decoding.

hydra.json.yaml.decode.yaml_to_json(node: Node_) object

Convert a YAML node to a JSON value. Fails for non-JSON YAML features (e.g. non-string mapping keys).