You found a bug! We've classified it as TOUCH-3656 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Apr 2007
    Posts
    228
    Vote Rating
    4
    XASD is on a distinguished road

      0  

    Default Json writer does not respect field's mapping

    Json writer does not respect field's mapping


    For model I have following 'fields' declaration:
    Code:
    fields: [
                { name: 'photo', mapping: 'photo.name'},
    //etc.
    
            ]
    Json writer generated json:
    Code:
    {
       'photo':'come_value'
    }
    If I set " nameProperty:'mapping' " you get even better json:
    Code:
    {
       'photo.name':'come_value'
    }
    both are wrong.
    expected result:
    Code:
    {
       'photo':{
          'name':'some_value'
       }
    }
    Thanks.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,217
    Vote Rating
    859
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1