使用eval函数来解析
<script>
var data="{root: [{name:'1',value:'0'},{name:'6101',value:'北京市'},{name:'6102',value:'天津市'},{name:'6103',value:'上海市'},{name:'6104',value:'重庆市'},{name:'6105',value:'渭南市'}, {name:'6110',value:'商洛市'} ]}";
data = eval('('+data+')');
console.log(data);
</script>