从json中删除特殊字符

时间:2017-05-17 15:01:52

标签: json format

我有一个格式如下的JSON数据:

//[ { "id": "47356445037421" ,"t" : "DBL" ,"e" : "NSE" ,"l" : "494.00" ,"l_fix" : "494.00" ,"l_cur" : "₹494.00" ,"s": "0" ,"ltt":"3:30PM GMT+5:30" ,"lt" : "May 17, 3:30PM GMT+5:30" ,"lt_dts" : "2017-05-17T15:30:00Z" ,"c" : "+19.50" ,"c_fix" : "19.50" ,"cp" : "4.11" ,"cp_fix" : "4.11" ,"ccol" : "chg" ,"pcls_fix" : "474.5" } ] 

当我迭代这个JSON时,我收到以下错误:

  

“未捕获的错误:语法错误,无法识别的表达式:// [”错误

任何人都可以建议我如何处理或如何在JSON之前删除//。

0 个答案:

没有答案