hydra.json.yaml.encode module
JSON-to-YAML encoding. Converts JSON Values to YAML Nodes (always succeeds), and Hydra Terms to YAML Nodes via JSON.
-
hydra.json.yaml.encode.json_to_yaml(value: Value) → Node_
Convert a JSON value to a YAML node. Always succeeds since YAML is a superset of JSON.
-
hydra.json.yaml.encode.to_yaml(types: Mapping[Name, Type], tname: Name, typ: Type, term: Term) → object
Encode a Hydra term to a YAML node via JSON encoding.