Correcting json to be in a valid format for parsing.