Added parseJSON. More testing is required.