printing json data to page