var data1: [{
{
postalcode:'qwerty',
cT: 23,
latitude:57.232324,
longitude: -2.343543,
call_reason: 'xyz',
Call_Sub_reason:'abc'
},
{
postalcode:'qwerty1',
cT: 43,
latitude:57.223524,
longitude: -1.435453,
call_reason: 'xyz1',
Call_Sub_reason:'abc1'
},
.
.
.
{
.
.
}
}];
want data in this format:
var data1 : [{
{
postalcode:'qwerty',
cT: 23,
location:[57.232324,-2.343543],
call_reason: 'xyz',
Call_Sub_reason:'abc'
},
{
postalcode:'qwerty1',
cT: 65,
location:[58.232324,-1.343543],
call_reason: 'xyz1',
Call_Sub_reason:'abc1'
},
{
.
.
}
}];
[{{is how your JSON starts, that is invalid syntax. Also, keys should be quoted and double quotes should be used, not single quotes.