<script>
$( document ).ready(function() {
jQuery.get('url', function(msg){
entirePage = JSON.stringify(msg);
text=(JSON.parse(entirePage));
console.log(text.productid);
console.log(text['productname']);
});
});
</script>
the result is like the following:
but if i try this code:
$( document ).ready(function() {
jQuery.get('url', function(msg){
entirePage = JSON.stringify(msg);
text=(JSON.parse(entirePage));
console.log(text);
});
});

