IPhone-JSON Library

Source: Internet
Author: User

Http://www.json.org/json-zh.html

JSON(JavaScript Object Notation) is a lightweight data exchange format,Is a set of "name/value" pairs.

It has the following forms:

1. Object: it is an unordered set of 'name/value' pairs. An object starts with "{" (left parenthesis) and ends with "}" (right Parenthesis. Each "name" is followed by a ":" (colon); "," (comma) is used to separate the "name/value" pairs.

2.Array: an ordered set of values. An array starts with "[" (left square brackets) and ends with "]" (right square brackets. Values are separated by commas.

3.Value (Value): It can be a string enclosed by double quotation marks (String), Value (number ),True,False,NullObject or array ). These structures can be nested.

 

4.String (String): It is a set of any number of Unicode characters enclosed by double quotation marks, which are escaped using a backslash. A character (character) is a separate string (character string)

5.Value (Number): It is also very similar to the value of C or Java. Remove unused octal and hexadecimal formats.

6.Blank: can be added to any symbol


JSON objective-C

NullNsnull

TrueAndFalseNsnumber

NumberNsnumber

StringNsstring

ArrayNsarray

ObjectNsdictionary

 

-[Sbjson (JSON-framework)] (http://code.google.com/p/json-framework)

-[Jsonkit] (https://github.com/johnezang/JSONKit)

-[Touchjson (from touchcode)] (http://code.google.com/p/touchcode)

-[Yajl (objective-C bindings)] (http://github.com/gabriel/yajl-objc)

-[Nextivejson] (https://github.com/nextive/NextiveJson)

-[Nsjsonserialization] (http://developer.apple.com/library/ios/#documentation/Foundation/Reference/NSJSONSerialization_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40010946)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.