added functionality to extract and parse json from the site