Added a parseJSON function to the Repo class.