Reputation: 8952
var obj = {{
data: {
type: 'string',
value: 'bir'
},
field: 'red'
},
{
data: {
type: 'string',
value: 'bir'
},
field: 'green'
}
};
How do you manipulate the data
s.
Upvotes: 1
Views: 107
Reputation: 21938
As an objects array it could be valid :
var obj = [{ data: { type: 'string', value: 'bir' }, field: 'red' }, { data: { type: 'string', value: 'bir' }, field: 'green' } ];But then again some context would be welcome ^^
Upvotes: 1