1. #1
    Sencha User
    Join Date
    Sep 2007
    Posts
    14
    Answers
    2
    Vote Rating
    0
    mrbaseball34 is on a distinguished road

      0  

    Default Answered: Parsing JSON

    Answered: Parsing JSON


    I'm having trouble. I went through the tutorials but am having problems parsing the JSON called from here:

    https://www.scic.com/events_json/emb.../0/RUBLE/0/0/0

    Code:
        launch: function() {
            Ext.create("Ext.tab.Panel", {
                fullscreen: true,
                tabBarPosition: 'bottom',
    
                items: [
                    {
                        xtype: 'nestedlist',
                        title: 'Schedule',
                        iconCls: 'star',
                        displayField: 'EventCode',
    
                        store: {
                            type: 'tree',
    
                            fields: [
                                'ProgramGroup','EventCode','FormalDate','LocCity','LocState','LocAddress','LocName','Price','LicenseeURL','GateKeeper_length','SeatsAreAvailable','LocLatitude','LocLongitude',
                                {name: 'leaf', defaultValue: true}
                            ],
    
                            root: {
                                leaf: false
                            },
    
                            proxy: {
                                type: 'jsonp',
                                url: 'https://www.scic.com/events_json/embed/1/0/0/RUBLE/0/0/0',
                                reader: {
                                    type: 'json',
                                    rootProperty: 'responseData.events'
                                }
                            }
                        },
    What am I doing wrong?

  2. Quote Originally Posted by sephyroth69 View Post
    I see in your javascript code that you put this for your reader :
    Code:
    reader: {
        type:'json',
        rootProperty:'responseData.events'
    }
    but the json you are trying to parse has only 'events' for its root so I'm wondering if this isn't your issue...
    even if I change it just to 'events', it still shows nothing.

  3. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Answers
    3
    Vote Rating
    2
    sephyroth69 is on a distinguished road

      0  

    Default


    Aren't your rootProperty simply events?

  4. #3
    Sencha User
    Join Date
    Sep 2007
    Posts
    14
    Answers
    2
    Vote Rating
    0
    mrbaseball34 is on a distinguished road

      0  

    Default


    I don't understand, please elaborate.

  5. #4
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Answers
    3
    Vote Rating
    2
    sephyroth69 is on a distinguished road

      0  

    Default


    I see in your javascript code that you put this for your reader :
    Code:
    reader: {
        type:'json',
        rootProperty:'responseData.events'
    }
    but the json you are trying to parse has only 'events' for its root so I'm wondering if this isn't your issue...

  6. #5
    Sencha User
    Join Date
    Sep 2007
    Posts
    14
    Answers
    2
    Vote Rating
    0
    mrbaseball34 is on a distinguished road

      0  

    Default


    Quote Originally Posted by sephyroth69 View Post
    I see in your javascript code that you put this for your reader :
    Code:
    reader: {
        type:'json',
        rootProperty:'responseData.events'
    }
    but the json you are trying to parse has only 'events' for its root so I'm wondering if this isn't your issue...
    even if I change it just to 'events', it still shows nothing.

  7. #6
    Sencha User
    Join Date
    Nov 2011
    Posts
    72
    Answers
    3
    Vote Rating
    2
    sephyroth69 is on a distinguished road

      0  

    Default


    Then it might be because your list has no layout on its parent !
    Or you need to give a height to your list.
    Tip was given by mitchellsimmons there.

  8. #7
    Sencha User
    Join Date
    Sep 2007
    Posts
    14
    Answers
    2
    Vote Rating
    0
    mrbaseball34 is on a distinguished road

      0  

    Default


    Thanks, will take a look.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi