var arr = { view:['or',['and',['value','status','=','1'],['value','type','=','1']],'condition2'], edit: ['value','status','=','1'] }; var pos = ['view',0,2] var new_arr =arr alert(new_arr[pos[0]])