The JSON Data Interchange Format
draft-ietf-json-rfc4627bis-01

The information below is for an old version of the document
Document Type Active Internet-Draft (json WG)
Last updated 2013-06-06
Stream IETF
Intended RFC status (None)
Formats plain text pdf html
Stream WG state WG Document
Document shepherd None
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Operations Area Working Group                               D. Crockford
Internet-Draft                                                  JSON.org
Intended status: Standards Track                           June 06, 2013
Expires: December 08, 2013

                    The JSON Data Interchange Format
                     draft-ietf-json-rfc4627bis-01

Abstract

   JSON is a lightweight, text-based, language-independent data
   interchange format.  It was derived from the ECMAScript Programming
   Language Standard.  JSON defines a small set of formatting rules for
   the portable representation of structured data.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on December 08, 2013.

Copyright Notice

   Copyright (c) 2013 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Crockford               Expires December 08, 2013               [Page 1]
Internet-Draft                  JSON bis                       June 2013

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Conventions Used in This Document . . . . . . . . . . . .   2
     1.2.  Changes from RFC 4627 . . . . . . . . . . . . . . . . . .   3
   2.  JSON Grammar  . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Values  . . . . . . . . . . . . . . . . . . . . . . . . .   4
     2.2.  Objects . . . . . . . . . . . . . . . . . . . . . . . . .   4
     2.3.  Arrays  . . . . . . . . . . . . . . . . . . . . . . . . .   4
     2.4.  Numbers . . . . . . . . . . . . . . . . . . . . . . . . .   4
     2.5.  Strings . . . . . . . . . . . . . . . . . . . . . . . . .   5
   3.  Parsers . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
   4.  Generators  . . . . . . . . . . . . . . . . . . . . . . . . .   7
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .   7
   6.  Examples  . . . . . . . . . . . . . . . . . . . . . . . . . .   8
   7.  Normative References  . . . . . . . . . . . . . . . . . . . .   9
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .   9

1.  Introduction

   JSON is a text format for the serialization of structured data.  It
   was inspired by the object literals of JavaScript, as defined in the
   ECMAScript Programming Language Standard, Fifth Edition[ECMA].

   JSON can represent four primitive types (strings, numbers, booleans,
   and null) and two structured types (objects and arrays).

   A string is a sequence of zero or more characters.

   An object is an unordered collection of zero or more name/value
   pairs, where a name is a string and a value is a string, number,
   boolean, null, object, or array.

   An array is an ordered sequence of zero or more values.

   The terms "object" and "array" come from the conventions of
   JavaScript.

   JSON's design goals were for it to be minimal, portable, textual, and
   a subset of JavaScript.  JSON stands for JavaScript Object Notation.

1.1.  Conventions Used in This Document

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [RFC2119].

Crockford               Expires December 08, 2013               [Page 2]
Internet-Draft                  JSON bis                       June 2013

   The grammatical rules in this document are to be interpreted as
Show full document text