Answer the question
In order to leave comments, you need to log in
How to display number (price) from json string?
....
<script>
WuBook.fount({'dfrom': '21/07/2014', 'dto': '23/07/2014'}, function(data) {console.log(data)});
</script>
Answer the question
In order to leave comments, you need to log in
for (key in data.results) {
if (data.results.hasOwnProperty(key)) {
var el = data.results[key];
console.log(el[1], el[2]);
break;
}
}
alert(data.results['1366977020']['1']);
alert(data.results['1366977020']['2']);
Instead of console.log(data) write for example the code:
var obj = JSON.parese(data);
$("body").html(obj.results["1366977020"]["1"]);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question