当前位置: 动力学知识库 > 问答 > 编程问答 >

How to read Following out put in javascript

问题描述:

{"GetFundListResult":"[{\"Fcode\":\"F0075\",\"name\":\"Axis Mutual Fund\"},{\"Fcode\":\"F0003\",\"name\":\"Birla Sunlife Mutual Fund\"},{\"Fcode\":\"F0007\",\"name\":\"DSP BlackRock Mutual Fund\"},{\"Fcode\":\"F0032\",\"name\":\"Franklin Templeton Mutual Fund\"},{\"Fcode\":\"F0014\",\"name\":\"HDFC Mutual Fund\"},{\"Fcode\":\"F0025\",\"name\":\"ICICI Prudential Mutual Fund\"},{\"Fcode\":\"F0013\",\"name\":\"IDFC Mutual Fund\"},{\"Fcode\":\"F0020\",\"name\":\"Kotak Mutual Fund\"},{\"Fcode\":\"F0006\",\"name\":\"L\\u0026T Mutual Fund\"},{\"Fcode\":\"F0065\",\"name\":\"Mirae Asset Mutual Fund\"},{\"Fcode\":\"F0026\",\"name\":\"Reliance Mutual Fund\"},{\"Fcode\":\"F0027\",\"name\":\"SBI Mutual Fund\"},{\"Fcode\":\"F0029\",\"name\":\"Sundaram Mutual Fund\"},{\"Fcode\":\"F0030\",\"name\":\"Tata Mutual Fund\"},{\"Fcode\":\"F0034\",\"name\":\"UTI Mutual Fund\"}]"}

网友答案:
var data = {"GetFundListResult":"[{\"Fcode\":\"F0075\",\"name\":\"Axis Mutual Fund\"},{\"Fcode\":\"F0003\",\"name\":\"Birla Sunlife Mutual Fund\"},{\"Fcode\":\"F0007\",\"name\":\"DSP BlackRock Mutual Fund\"},{\"Fcode\":\"F0032\",\"name\":\"Franklin Templeton Mutual Fund\"},{\"Fcode\":\"F0014\",\"name\":\"HDFC Mutual Fund\"},{\"Fcode\":\"F0025\",\"name\":\"ICICI Prudential Mutual Fund\"},{\"Fcode\":\"F0013\",\"name\":\"IDFC Mutual Fund\"},{\"Fcode\":\"F0020\",\"name\":\"Kotak Mutual Fund\"},{\"Fcode\":\"F0006\",\"name\":\"L\\u0026T Mutual Fund\"},{\"Fcode\":\"F0065\",\"name\":\"Mirae Asset Mutual Fund\"},{\"Fcode\":\"F0026\",\"name\":\"Reliance Mutual Fund\"},{\"Fcode\":\"F0027\",\"name\":\"SBI Mutual Fund\"},{\"Fcode\":\"F0029\",\"name\":\"Sundaram Mutual Fund\"},{\"Fcode\":\"F0030\",\"name\":\"Tata Mutual Fund\"},{\"Fcode\":\"F0034\",\"name\":\"UTI Mutual Fund\"}]"};
var jsondata = JSON.parse(data['GetFundListResult']);

This should do the trick

分享给朋友:
您可能感兴趣的文章:
随机阅读: