본문 바로가기
tools/json

Introducing JSON - 원문 json.org

by 플로거 2010. 12. 23.

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.

JSON은

(자바 스크립트 객체 표기법) 경량 데이터 교환 포멧(형식)이다.  사람이 읽고 쓰기에 싶다.
기계가 파싱하고 생성하기 싶다. 자바스크립트 프로그래밍 언어, 표준 ECMA-262 3rd 에디션 - 1999 12월 의 하위세트에 기반을 두고 있다. JSON은 독립적인 완변한 언어의 텍스트 포멧(형식)이지만, C, C++, C#, Java, JavaScript, Perl, Python, 그리고 다수의 다른 언어들을 포함하는 C계열 랭귀지의 프로그래머에와 친숙한 교류를 할 수 있다.  이러한 속성은 JSON 이 이상적인 데이터교환 랭귀지란 것이다.


JSON is built on two structures:
JSON 은 두가지 구조로 만들어져 있다.

  • A collection of name/value pairs. In various languages, this is realized as an object, record, struct, dictionary, hash table, keyed list, or associative array.

           이름/값 쌍의 콜렉션 . 이러한 형태는 오브젝트, 레코드, 구조체, 딕셔너리, 해시테이블, 키 목록, 연관배열 처럼 다양한 언어에서 구현되어 있다.

  • An ordered list of values. In most languages, this is realized as an array, vector, list, or sequence.

            값의 정렬된 목록, 대부분의 언어에서는,  배열, 벡터, 리스트, 시퀀스로 구현되어 있다.

        

These are universal data structures. Virtually all modern programming languages support them in one form or another. It makes sense that a data format that is interchangable with programming languages also be based on these structures.

이러한 것들은 보편적인 데이터 구조이다. 거의 모든 현대의 프로그래밍 언어들은 한 형태 또는 다른 형태들을 지원한다. 이러한 구조를 기반으로 함으로 프로그래밍 언어들과 상호 교환하는 데이타 형식을 민감하게 한다.

In JSON, they take on these forms:

JSON 은 이러한 형태를 가진다.

An object is an unordered set of name/value pairs. An object begins with

{

 

(left brace)

and ends with

}

 

(right brace)

. Each name is followed by

:

 

(colon)

and the name/value pairs are separated by

,

 

(comma)

.

 

An array is an ordered collection of values. An array begins with

[

 

(left bracket)

and ends with

]

 

(right bracket)

. Values are separated by

,

 

(comma)

.

 

A value can be a string in double quotes, or a number, or

true

or

false

or

null

, or an object or an array. These structures can be nested.

 

A string is a sequence of zero or more Unicode characters, wrapped in double quotes, using backslash escapes. A character is represented as a single character string. A string is very much like a C or Java string.

 

A number is very much like a C or Java number, except that the octal and hexadecimal formats are not used.

 

Whitespace can be inserted between any pair of tokens. Excepting a few encoding details, that completely describes the language.

'tools > json' 카테고리의 다른 글

JSon 문법 - 출처 : json.org  (0) 2010.12.23
JSON Example II - 출처 : json.org  (0) 2010.12.23
JSON Example I - 출처 : json.org  (0) 2010.12.23

댓글