PDA

View Full Version : [OPEN] Json writer does not respect field's mapping



XASD
2 Nov 2012, 2:19 AM
For model I have following 'fields' declaration:


fields: [
{ name: 'photo', mapping: 'photo.name'},
//etc.

]

Json writer generated json:


{
'photo':'come_value'
}


If I set " nameProperty:'mapping' " you get even better json:


{
'photo.name':'come_value'
}

both are wrong.
expected result:


{
'photo':{
'name':'some_value'
}
}


Thanks.

mitchellsimoens
2 Nov 2012, 5:24 AM
Thanks for the report! I have opened a bug in our bug tracker.