Fixing json errors.