Results 1 to 3 of 3

Thread: What happened to Ext.util.JSON.decode?

  1. #1
    Sencha User
    Join Date
    Jul 2011
    Posts
    54
    Answers
    1
    Vote Rating
    0
      0  

    Default Answered: What happened to Ext.util.JSON.decode?

    I always get this error in my console:

    Uncaught TypeError: Cannot call method 'decode' of undefined


    Example:

    Code:
    Ext.Ajax.request({
                    url: 'json.js',
                    success: function(response, opts) {
                        var menu = Ext.util.JSON.decode(response.responseText)
    It used to work with STv1x.

  2. It's Ext.JSON.decode now or you can simply use Ext.decode

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    It's Ext.JSON.decode now or you can simply use Ext.decode
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Jul 2011
    Posts
    54
    Answers
    1
    Vote Rating
    0
      0  

    Default Thanks Mitchell!

    Sorry - I looked all over the place but couldn't find a simple example - strike this off as Answered if you like

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •