Raise ValidationError in case of invalid JSON string