in some case i want to show a specific object of JSON file which is load from url in js :
<div id="me2"></div>
<script>
function Get(yourUrl){
var Httpreq = new XMLHttpRequest(); // a new request
Httpreq.open("GET",yourUrl,false);
Httpreq.send(null);
return Httpreq.responseText;
}
var json_obj = JSON.parse(Get('https://www.instagram.com/barkobco/?__a=1'));
document.getElementById("me2").innerHTML = json_obj.graphql.user.edge_follow;
</script>
</body>
</html>
but the output is : [object Object]
why?
the correct object value is : 25