i think this should be name = res['_source']['form']['@name']