hydra.json.decoding module

Decoding functions for JSON data.

hydra.json.decoding.decode_array(decode_elem: Callable[[Value], object], v1: Value) object

Decode a JSON array using a decoder for elements.

hydra.json.decoding.decode_boolean(v1: Value) object

Decode a JSON boolean value.

hydra.json.decoding.decode_field(decode_value: Callable[[T0], object], name: str, m: Mapping[str, T0]) object

Decode a required field from a JSON object.

hydra.json.decoding.decode_object(v1: Value) object

Decode a JSON object value to a name-keyed map. Field order is not preserved; decoding looks fields up by name.

hydra.json.decoding.decode_optional_field(decode_value: Callable[[T0], object], name: T3, m: Mapping[T3, T0]) object

Decode an optional field from a JSON object.

hydra.json.decoding.decode_string(v1: Value) object

Decode a JSON string value.