python/ray/serve/pipeline/json_serde.py
def convert_from_json_safe_obj(obj: Any, *, err_key: str) -> Any:
    """Converts a JSON-safe object to one that contains Serve special types.

    The provided object should have been serialized using
    convert_to_json_safe_obj. Any special-cased objects such as ServeHandles
    will be recovered on this pass.
    """
    try:
        return json.loads(json.dumps(obj), object_hook=dagnode_from_json)
    except Exception as e:
        raise ValueError(f"Failed to convert {err_key} from JSON:\n{e}")
Converts a JSON-safe object to one that contains Serve special types.

    The provided object should have been serialized using
    convert_to_json_safe_obj. Any special-cased objects such as ServeHandles
    will be recovered on this pass.
    
Converts a JSON-safe object to one that contains Serve special types.
The provided object should have been serialized using
convert_to_json_safe_obj. Any special-cased objects such as ServeHandles
will be recovered on this pass.
Converts a JSON - safe object to one that contains Serve special types . The provided object should have been serialized using convert_to_json_safe_obj . Any special - cased objects such as ServeHandles will be recovered on this pass .
def convert_from_json_safe_obj(obj: Any, *, err_key: str) -> Any:
    try:
        return json.loads(json.dumps(obj), object_hook=dagnode_from_json)
    except Exception as e:
        raise ValueError(f"Failed to convert {err_key} from JSON:\n{e}")
def convert_from_json_safe_obj ( obj : Any , * , err_key : str ) -> Any : try : return json . loads ( json . dumps ( obj ) , object_hook = dagnode_from_json ) except Exception as e : raise ValueError ( f"Failed to convert {err_key} from JSON:\n{e}" )
Converts a JSON-safe object to one that contains Serve special types.
Converts a JSON - safe object to one that contains Serve special types .
"""Converts a JSON-safe object to one that contains Serve special types.

    The provided object should have been serialized using
    convert_to_json_safe_obj. Any special-cased objects such as ServeHandles
    will be recovered on this pass.
    """
obj
Any
err_key
str