From the course: JSON Essential Training
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Solution: Work with JSON Schema - JavaScript Tutorial
From the course: JSON Essential Training
Solution: Work with JSON Schema
(upbeat music) - [Instructor] I want to create a schema for my weather data and just looking at this data, even without it parsed, it's got a pretty complicated structure. So I'd prefer to just use a schema generator. Now, if you want an extra challenge sitting down, parsing this data out and then building out level by level, your own schema is a really great challenge, but I'm going to walk through just building this out, using a generator. So I'm going to start by copying the content between the quotes, take that to the clipboard, and then I'll go over to jsonschema.net and I'll replace the existing JSON with my JSON. And I will go ahead and make a couple changes to the settings. So in keyword visibility, I want to take those examples out just to make the structure easier to read. And I want to change that URI to the one that I specified for this particular schema. So that's http://explore…
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
-
-
-
-
-
-
-
(Locked)
What is JSON Schema?2m 57s
-
(Locked)
Create a basic schema with JSON Schema6m 47s
-
(Locked)
Validate JSON data against a schema3m 42s
-
(Locked)
Specify required properties with JSON Schema4m 59s
-
(Locked)
Work with schema generators7m 29s
-
(Locked)
Challenge: Work with JSON Schema52s
-
(Locked)
Solution: Work with JSON Schema4m 23s
-
(Locked)
-
-