Here is the code I need to add to my errors array and send the values to my HTML client-side template:
{
"email": [
"user with this email already exists."
]
}
I am looking for something like this:
"user with this email already exists"
I want to extract only the strings without the property name. I attempted to use response.json()
to convert it, but I keep getting an error stating response.json is not a function