Here is an example of JSON data:
{ name: { firstname: 'First Name', lastname: 'Last Name' } }
How do I go about loading this data into a form field in ExtJS?
First Name: [ First Name ]
Last Name: [ Last Name ]
UPDATE:
After implementing the above technique, I encountered another challenge when trying to send my changes back to the server. ExtJS generated the JSON in a different format than expected.
{ "firstname": "New first name", "lastname": "New last name"}
// instead of
{ "name": { "firstname": "...", "lastname": "..."} }
Is this the intended behavior or is there a way to instruct ExtJS to serialize the object back to its nested form? Thank you.
P.S: Code snippets taken from the Ext MVC application guide available at http://localhost/extjs/docs/index.html#!/guide/application_architecture