JSON Tutorial | Rookie Tutorial
Rookie Tutorial -- Learning is not only about technology, but also about dreams!
- Home
- HTML
- JavaScript
- CSS
- Vue
- React
- Python3
- Java
- C
- C++
- C#
- AI
- Go
- SQL
- Linux
- VS Code
- Bootstrap
- Git
- Local Bookmarks
JSON Tutorial
JSON TutorialJSON IntroductionJSON SyntaxJSON vs XMLJSON ObjectsJSON ArraysJSON.parse()JSON.stringify()JSON UsageJSONP Tutorial
JSON Examples
JSON Formatting Tool
JSON Tutorial
JSON: JavaScript Object Notation
JSON is a syntax for storing and exchanging text information, similar to XML.
JSON is smaller, faster, and easier to parse than XML.
JSON is easy for humans to read and write.
Programming languages such as C, Python, C++, Java, PHP, Go all support JSON.
JSON Example
{"sites": [{"name":"" , "url":"www."}, {"name":"google" , "url":"www.google.com"}, {"name":"Weibo" , "url":"www.weibo.com"}]}
This sites object is an array containing records (objects) for 3 sites.
What is JSON?
- JSON stands for JavaScript Object Notation (JavaScript Object Notation)
- JSON is a lightweight text data interchange format
- JSON is language independent: JSON uses JavaScript syntax to describe data objects, but JSON remains independent of language and platform. JSON parsers and JSON libraries support many different programming languages. Currently, many dynamic programming languages (PHP, JSP, .NET) support JSON
- JSON is self-descriptive and easier to understand
JSON - Convert to JavaScript Objects
The JSON text format is syntactically identical to the code used to create JavaScript objects.
Due to this similarity, a JavaScript program can use the built-in eval() function to generate native JavaScript objects from JSON data, without the need for a parser.
JSON Tools
- JSON Formatting Tool: https://www.jyshare.com/front-end/53/
- JSON Escape/Unescape Tool: https://www.jyshare.com/front-end/7683/
- JSON Online Parser: https://www.jyshare.com/front-end/7438/
- JSON Diff Tool: https://www.jyshare.com/front-end/9557/
YouTip