YouTip LogoYouTip

Json Tutorial

JSON Tutorial | Rookie Tutorial

JSON Tutorial | Rookie Tutorial

Rookie Tutorial -- Learning is not only about technology, but also about dreams!

JSON Tutorial

JSON TutorialJSON IntroductionJSON SyntaxJSON vs XMLJSON ObjectsJSON ArraysJSON.parse()JSON.stringify()JSON UsageJSONP Tutorial

JSON Examples

PHP JSON

JSON Formatting Tool

JSON Introduction

JSON Tutorial


Image 2

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

← Googleapi TutorialAjax Tutorial β†’