JSON-lightweight Data Exchange Language

Source: Internet
Author: User
Tags php json

JSON(JavaScript Object Notation) is a lightweight data exchange format. Easy to read and write. It is also easy to parse and generate machines. It is based on a subset of JavaScript programming language, standard ECMA-262 3rd edition-December 1999. JSON uses a completely language-independent text format, but it also uses a habit similar to the C language family (including C, C ++, C #, Java, JavaScript, Perl, Python, and so on ). These features make JSON an ideal data exchange language.

JSON is constructed in two structures:

  • A collection of name/value pairs ). In different languages, it is understoodObject), Record, structure (struct), Dictionary, hash table, keyed list, or associative array ).
  • An ordered list of values ). In most languages, it is understood as an array ).

These are common data structures. In fact, most modern computer languages support them in some form. This makes it possible to exchange a data format between programming languages that are also based on these structures.

JSON has the following forms:

An object 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.

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

Value (Value) Can be a string enclosed by double quotation marks (String), Value (number ),true,false,nullObject or array ). These structures can be nested.

String (StringIs 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 ).

String (String) Is very similar to a C or Java string.

Value (Number) Is also very similar to the values in C or Java. Remove unused octal and hexadecimal formats. Except for some encoding details.

Spaces can be added to any symbol. The complete language is described below.

  • ASP:

    • JSON for ASP.
    • Json asp Utility Class.
  • ActionScript:
    • Actionscript1.
    • Actionscript2.
    • Actionscript3.
    • Jsonconnector.
  • C.
    • Json_checker.
    • JSON parser.
    • JSON-C.
    • M's JSON parser.
    • Yajl.
  • C ++:
    • Tinyjson.
    • Jsoncpp.
    • Zoolib.
    • Jaula.
    • Jost.
    • JSON spirit.
    • Cajun.
  • C #:
    • Json_checker.
    • Jayrock.
    • JSON. Net-LINQ to JSON.
    • Jsonsharp.
    • Litjson.
    • JSON for. net.
    • Jsonfx.
    • Jsonexserializer.
    • How do I write my own parser?
  • ColdFusion:
    • ColdFusion 8.
    • Cfjson.
    • Tojson.
  • D.
  • Delphi:
    • Delphi web utils.
    • JSON Delphi library.
    • JSON toolkit.
  • E.
  • Eiffel.
  • Erlang.
  • Fan.
  • Flex.
  • Haskell:
    • Rjson package.
    • JSON package.
    • JSON. HS.
    • Haskellnet.
  • Haxe.
  • Java:
    • Org. JSON.
    • Org. JSON. Me.
    • JSON-lib.
    • JSON tools.
    • JSON-simple.
    • Stringtree.
    • Sojo.
    • Vraptor.
    • Restlet.
    • Jettison.
    • JSON-taglib.
    • Flexjson.
    • Xstream.
    • Jsonmarshaller.
    • Flexjson.
    • Jackson JSON processor.
    • Jon tools.
    • Google-gson.
  • Javascript:
    • Json2.js.

      • Chinese.
    • Json_parse.js.
    • Json_parser_state.js.
    • Json_sans_eval.
  • Lasso.
  • LISP:
    • Common LISP

      • Common Lisp JSON.
      • Yason.
    • Emacs lisp.
    • Chicken scheme.
    • Mzscheme.
    • PLT scheme.
  • LotusScript:

    • JSON ls.
    • JSON Reader/writer.
  • Lua:
    • Json4lua.
    • JSON. Lua.
  • Objective C:
    • Bsjsonadditions.
    • Cocoa JSON framework.
  • Objective caml.
  • Openlaszlo.
  • Perl.
  • PHP:
    • PHP 5.2.
    • JSON.
    • Services_json.
    • Zend_json.
    • Jsonrpc.
    • Solar_json.
    • Sca_sdo.
    • Comparison of php json libraries.
  • Pike:
    • Public. parser. JSON.
    • Public. parser. json2.
  • PL/SQL.
  • Powershell.
  • PROLOG:
    • SWI-Prolog HTTP support
    • JSON. Prolog.
  • Python:
    • The Python standard library.
    • Simplejson.
    • Pyson.
  • R.
  • Realbasic.
  • REBOL.
  • Ruby:
    • JSON.
    • Yajl-Ruby.
  • Squeak.
  • TCL.
  • Visual Basic.
  • Visual FoxPro.
  • RFC 4627 application/JSON.
  • The<module>Tag.
  • Jsonrequest.
  • Jsonrequest extension for Firefox.
  • The fat-free alternative to XML
  • An example of JSON-encoded messages.
  • The JSON group on Yahoo!
  • Yahoo! JSON
  • Google data
  • Geojson
  • JSON shell for the browser
  • Jsont.
  • JSON template.
  • Jsonpath.
  • Jpath.
  • Jaql: a json query language.
  • Jspon.
  • Jsonml.
  • Css json.
  • JSON 2 HTML.
  • Jsontjson.
  • Xml2json-xslt.
  • X-xml2jsonphp.
  • Parsing JSON into XQuery.
  • Pure.
  • Json.com.
  • JSON-RPC.
  • JSON-RPC-page.
  • Jabsorb.
  • JSON-cache.
  • Couchdb.
  • Dbslayer.
  • Persevere.
  • Springdb.
  • Strokedb.
  • Jsonlint, The JSON validator.
  • Jslint, syntax checker.

Why JSON isn't just for JavaScript • I Can't Believe It's Not XML! • The JSON vs XML debate begins in earnest • JSON and XML • JSON. XML as a data interchange format • examining JSON • JSON and. net • Shaping the Future of secure Ajax mashups • JSON and browser security

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.