From the course: Visual Studio Code for Web Developers

Unlock this course with a free trial

Join today to access over 25,500 courses taught by industry experts.

JSON and schemas

JSON and schemas

- [Instructor] The Java Script Object Notation, or json file format, has become incredibly important in web development. It's used for everything. From transferring data via AJAX, to specifying configuration data for popular packages, like Node and Bower. And VS Code makes working with json a breeze. Out of the box, VS Code provides support for working with several common json formats. And it's easy enough to add your own json schema Files to VS Code, if you have any custom ones. So, I'll create a file here in code, and I'm just going to save it as test.json. And just by naming it, a json file, I get some automatic editing assistance. So first, when I type a brace, you can see that it's auto balanced by the editor. And I can enter a key, and a value, and if I leave a trailing comma on the end of the line, you can see that I'm getting some automatic error checking. There's a little red squiggle down here, that says, hey a Property was expected, because I've got this trailing comma…

Contents