(success, data)
return json.dumps(rst)
standard response
standard response
standard response
def standard_response(success, data):
    '''standard response
    '''
    rst = {}
    rst['success'] = success
    rst['data'] = data
    return json.dumps(rst)
def standard_response ( success , data ) : rst = { } rst [ 'success' ] = success rst [ 'data' ] = data return json . dumps ( rst )