def METHOD_NAME(p):
    # run p.expect() to expect a json object back, and return it as parsed JSON
    p.expect('{.+}\r\n')
    result = p.match.group(0).strip().decode()
    print('Read raw data from server: %s' % result)
    return json.loads(result)