def from_json ( s ) : d = json . loads ( s ) sbp = SBP . from_json_dict ( d ) return sbp
python make boject from string
Given a JSON - encoded message build an object .
def from_json(s):
    """Given a JSON-encoded message, build an object.

    """
    d = json.loads(s)
    sbp = SBP.from_json_dict(d)
    return sbp