I have this object:
{
name: "",
email: "",
phone: "",
protocol: "",
area: "",
subject: "",
message: "",
validation: this.validator.valid()
}
I wanna convert it to JSON, but I do not want the validation
property on it.
I've already tried the following:
const test = JSON.stringify(this.state);
delete test.validation;
Any other approach?