---
title: "js/jquery 解析json字符串"
author: "coldg"
date: "2015-04-23T09:44:58Z"
tags: []
categories: ["Web前端"]
slug: "js-jquery-json"
draft: false
lastmod: "2015-04-23T09:44:57Z"
id: 2205264
url: "https://coldg.iteye.com/blog/2205264"
---

```
var data = [{"money":"100.0","physicalNo":"3514174243","pressNo":"1000012322"},{"money":"100.0","physicalNo":"222222","pressNo":"1234567810"}];
/* 
 var	cardjson =  eval('(' + data + ')');
console.log(cardjson);
for(var i=0; i<cardjson.length; i++) 
{ 
console.log(cardjson[i].money+" ," + cardjson[i].pressNo+" ," + cardjson[i].physicalNo); 
}  */
var	cardjson =  eval('(' + data + ')');
$(cardjson).each(function(){ 
 console.log(this.money+" ," + this.pressNo+" ," + this.physicalNo);  
}); 
```