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

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…

Contents