data from json URL to jQuery
Budget: $10 – $11 USD
I need help in my project
Script as;
var url="http://api.alqimma.com.sa/index.php?xxxxx";
$.getJSON(url, function(keys) {
console.log(keys.data.time)
});
url api as follows;
[
{
"status":"ok","data":
{
"latitude":24.6257516,
"longitude":46.8553833,
"altitude":0,
"ignition":false,
"input1":false,
"input2":false,
"speed":0,
"angle":0,
"time":"2021-07-27 12:00:21"
}
}
]
I try many scenarios (keys.data.time or keys.time) not success
only this line I have problem console.log(keys.data.time)
Script as;
var url="http://api.alqimma.com.sa/index.php?xxxxx";
$.getJSON(url, function(keys) {
console.log(keys.data.time)
});
url api as follows;
[
{
"status":"ok","data":
{
"latitude":24.6257516,
"longitude":46.8553833,
"altitude":0,
"ignition":false,
"input1":false,
"input2":false,
"speed":0,
"angle":0,
"time":"2021-07-27 12:00:21"
}
}
]
I try many scenarios (keys.data.time or keys.time) not success
only this line I have problem console.log(keys.data.time)