Parse JSON in Ext JS 4 or JavaScript

This question already has an answer here:

  • Parse JSON in JavaScript? [duplicate] 16 answers

  • Have a look at http://docs.sencha.com/ext-js/4-1/#!/api/Ext.JSON. There you find how you can parse JSON with Ext JS 4.

    var strJson = '{"value": [{"idProductCategoryAttributeValue":43,"value":"7","sortOrder":0}]}';
    var obj = Ext.JSON.decode(strJson);
    

    var obj = Ext.decode(jsonstr);
    
    链接地址: http://www.djcxy.com/p/8486.html

    上一篇: 如何将字符串转换为Angularjs中的对象

    下一篇: 在Ext JS 4或JavaScript中解析JSON