Missing JSON object

  1. #1

    Missing JSON object

    I use this call in a javascript function and it works while debugging in Visual Studio 2012 but not when deployed to a Win2008R2 Server running IIS 7.5

    var data = JSON.parse(params);
    The error is JSON is undefined.

    I am using the latest Ext from NuGet which has placed these scripts in my page...

        <script type="text/javascript" src="/dei/extjs/ext-all-js/ext.axd?v=41036"></script>
        <script type="text/javascript" src="/dei/extnet/extnet-all-js/ext.axd?v=41036"></script>
        <script type="text/javascript" src="/dei/extnet/locale/ext-lang-en-js/ext.axd?v=41036"></script>
        <script type="text/javascript" src="/dei/ux/boxreorderer/boxreorderer-js/ext.axd?v=41036"></script>
        <script type="text/javascript" src="/dei/ux/tabscrollermenu/tabscrollermenu-js/ext.axd?v=41036"></script>
        <script type="text/javascript" src="/dei/ux/clearbutton/clearbutton-js/ext.axd?v=41036"></script>
        <script type="text/javascript" src="/dei/ux/filterheader/filterheader-js/ext.axd?v=41036"></script>
    I also tried to switch the call to $.parseJSON(params) and that also works in the debugger but not when deployed.

    Does anyone have a suggestion on what to look for next?
  2. #2
    Hello!

    Can you check that the browser download all these script files. Also, you can use Ext.JSON: http://docs.sencha.com/extjs/4.1.3/#!/api/Ext.JSON
  3. #3
    ExtJS has no JSON, there is Ext.JSON
    var data = Ext.JSON.decode(params);

Similar Threads

  1. [CLOSED] Send Json object with get value with loaders
    By Tactem in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Oct 07, 2013, 3:22 PM
  2. [OPEN] [#249] Missing Json.NET PDB?
    By anup in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: May 28, 2013, 4:10 AM
  3. [CLOSED] Convert List<object> to Json
    By pawangyanwali in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Dec 16, 2012, 4:08 AM
  4. How to give a converted object from an json ?
    By marcelorosait in forum 1.x Help
    Replies: 4
    Last Post: Feb 20, 2012, 11:41 AM
  5. JSON Object to Store
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Oct 11, 2011, 8:44 PM

Tags for this Thread

Posting Permissions