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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
What is JSON?1m 49s
-
(Locked)
Understand objects in programming2m 25s
-
(Locked)
Structure JSON by following the rules4m 7s
-
Build a basic JSON structure3m 50s
-
(Locked)
Build a nested JSON structure2m 45s
-
(Locked)
Challenge: Debug a JSON structure and create your own1m 45s
-
(Locked)
Solution: Debug a JSON structure and create your own3m 53s
-
-
-
-
-
-
-