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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,050
    Answers
    3976
    Vote Rating
    1381
      0  

    Default

    It's Ext.JSON.decode now or you can simply use Ext.decode
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    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
  •