<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def from_json(s):
 """Given a JSON-encoded message, build an object. """

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