Change format of toJSON from Validation Error.