3
I would like to know how I can make 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;
});
});
},
example of json
[
{
"description":"Job de Teste",
"jobList":[
{
"jobID":01,
"jobState":"OK",
"jobName":"TESTE",
"jobCompleteTime":1407783800000 //tempo em milisec.
}
]
}
]
Return me this json, I need to convert a field within jobList before return. How can I specifically treat only one field before return?
What is the field that has the date? which is the key (key)? you can put an excerpt of JSON in the question?
– Sergio
OK. I made the edit. the time in milisec is in the comment.
– peterq
Great, by the way, there is only one object per jobList, or this jobList is even an array with multiple objects?
– Sergio
is an array msm :) in the deployment will have several.
– peterq