Created parse function that takes a string and returns the JSON object. Parser code needs to be updated to ignore newline characters