How can I replace this json code :
var contacts = [
{ firstName: 'Mohammed', lastName: 'Shurrab', phone: '0599000000' },
{ firstName: 'Osama', lastName: 'Abu Kmail', phone: '0599111111' },
{ firstName: 'Alaa', lastName: 'Saqer', phone: '0599666666' }
];
with a result from jquery ajax call ( getJson ) to the following url which returns json :
amerenaya.com/CI/index.php/hello/example5
and store the result in the variable contacts?
to use in a javascript code?
1 Answer