课程: Mastering Web Developer Interview Code

免费学习该课程!

今天就开通帐号,24,700 门业界名师课程任您挑!

How do you render JSON to a DOM element?

How do you render JSON to a DOM element?

- [Instructor] JSON has become a standard for sharing data, especially inside web applications. So let's take a look at what it is, and how you can use it in an existing webpage. So JSON stands for JavaScript Object Notation, and it's essentially just a text format for sharing data between clients and servers. Now, it is based on JavaScript objects, so it's very similar to the way you construct your objects within JavaScript, but it's not identical. For example, the JSON format is just text, and it isn't designed to have embedded methods like you can do in regular JavaScript. JSON is also language independent, and there are many implementations for different programming languages. So just because it's called JavaScript Object Notation doesn't mean that you can only use it with JavaScript. Now, JSON is also designed to be easy to read and parse, which means to translate. However, there is a lot of punctuation when you…

内容