I am simply trying to parse through an array key=>value pair that has a .0 in it. Below is the JSON I'm trying to parse through.
{message: "The given data was invalid.", errors: {…}}
errors:
step1.0: Array(1)
0: "Invalid response."
I'm trying to get "Invalid response" to log in the console. I get caught up when I try
errors.step1.0[0]
...it doesn't like the ".0". I have tried to escape it with "\" and have tried using 0 in a string, but nothing is working. I'm sure it's a simple syntax issue.
Thank you!