From the course: JSON Essential Training

Unlock the full course today

Join today to access over 24,800 courses taught by industry experts.

Solution: Debug a JSON structure and create your own

Solution: Debug a JSON structure and create your own - JavaScript Tutorial

From the course: JSON Essential Training

Solution: Debug a JSON structure and create your own

(upbeat music) - [Instructor] So in my stock code I have a lot of errors, but remember, I'm going to start from the top and work my way down. So in the previous video, we already looked at this one, but let's just do it again. We've got this error. It says, "Property keys must be double quoted." Great, I can do that. So I'll replace those single quotes with double quotes. And now that first line is all set. So I'll look at the second line. Again, I've got that squiggle and I'll hover over that. It says, "Value expected." That's not very helpful. But if I look at that and think about my rules and remember that, you know, this is supposed to be a string and strings are supposed to be double quoted as well. And this uses single quotes. So I'll change those single quotes to double quotes. And this is an instance where there was an error and the editor wasn't actually very helpful in telling us what was wrong. It just…

Contents