def from_json ( cls , s ) : d = json . loads ( s ) return get_dict_handler ( d [ "type" ] ) ( d )
python code to receive a java object in json
Restores the object from the given JSON .
def from_json(cls, s):
        """
        Restores the object from the given JSON.

        :param s: the JSON string to parse
        :type s: str
        :return: the
        """
        d = json.loads(s)
        return get_dict_handler(d["type"])(d)