I would like to know how I can do a millisecond to date conversion within a field in a json.
For example
$http.get("http://teste").success(function (dados) {
ng.locations = $.map(dados, function(job) {
return job.jobList;
});
});
},
json example
[
{
"description":"Job de Teste",
"jobList":[
{
"jobID":01,
"jobState":"OK",
"jobName":"TESTE",
"jobCompleteTime":1407783800000 //tempo em milisec.
}
]
}
]
I get this json, I need to convert a field inside the jobList before returning. How can I specifically handle only one field before return?