PDA

View Full Version : Record.json property



akirillov
22 Jun 2010, 7:56 AM
Is there any way to get json property of record if record was created like this


var rec = Ext.data.Record.create(mapping);
that.contactsGrid.getStore().add(new rec(data));According to API I can get json propertyif the record was createdby an ArrayReader. But i need to extract json from record that i created using constructor.

Seems i have to write code, that will able to convert


var k = [
a: 'aa',
'c.b.ok' : '1'
]

k = {
a: 'aa',
c: {
b: {
ok:1
}
}
}But prolly ext can do it for me ?