Sign in Join
Wiki copytemporary

JSON/ko: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: JSON/ko

OldNewLine
1+## 소개
2+
3+[JSON](http://www.json.org) (JavaScript Object Notation) is a form of data representation that provides a standardised data exchange format using simple text. As the name suggests, it is based on a subset of the JavaScript programming language; however, it is completely language-agnostic. Besides being easy for humans to read and write, it is also easy for machines to parse and generate.
4+
5+Compared to [[XML]], it is more human-readable.
6+
7+## JSON Object
8+
9+A JSON Object is nothing more than a collection of comma-separated name/value pairs (often called members) enclosed in curly brackets:
10+
11+``` javascript
12+{"name1":value1, "name2":value2 ...}
13+```
14+
15+To make it easier for humans to read and visualize, the name/value pairs are often listed vertically:
16+
17+``` javascript
18+{
19+ "name1": value1,
20+ "name2": value2
21+}
22+```
23+
24+문자열의 이름은 더블쿼터 안에 있어야 지원합니다, 다음사항을 참고하세요:
25+
26+- 단순 문자열, 숫자, 불 또는 널 값 (문자열은 더블쿼터로 닫아야합니다.):\
27+ `{"id":1, "name":"John Doe", "married":false}`
28+
29+- 배열; 값은 쉼표로 분리하고 대괄호로 열고 닫아야 합니다.:\
30+ `{"primeNumbers":[2, 3, 5, 7, 11, 13, 17], "oddNumbers":[1,3,5,7]}`
31+
32+- 오브젝트; 한쌍으로 name:value 형태이며 중괄호로 열고 닫아야 합니다.:\
33+ `{"address":{"street":"145 Koinange Street", "City":"Nairobi", "Countㅇry":"Kenya"}}`
34+
35+JSON objects can always be nested arbitrarily to create even more complex objects:
36+
37+``` javascript
38+{"user":
39+ { "userid": 1900,
40+ "username": "jsmith",
41+ "password": "secret",
42+ "groups": [ "admins", "users", "maintainers"]
43+ }
44+}
45+```
46+
47+## JSON 포맷
48+
49+There are a few rules and guidelines that define the JSON syntax (see RFC 4627):
50+
51+- JSON 오브젝트의 경우 반드시 {}로 열고 닫아야합니다. `{ }`. 빈 값의 오브젝트일 경우에도 {}로 열고 닫아야합니다. `{ }`
52+- 배열은 대괄호로 열고 닫아야 하며 값의 분리는 ,쉼표여야 합니다. `[ ]`. 빈값의 배열일 경우 \[\]로 열고 닫아야 합니다. `[ ]`
53+- 키와 값으로 쌍을 이루어야 합니다.
54+- 키의 경우 더블쿼로로 감싸야 합니다.
55+- 모든 맴버중 오브젝트는 유일한 키어야 합니다.
56+- 값 중 문자열의 경우 반드시 더블 쿼터안에 있어야 합니다.
57+- 불값은 **true** 또는 **false** 로 표기되어야 합니다.
58+- Number values are represented using double-precision floating-point format; Scientific notation is supported; Numbers should not have leading zeroes
59+- "Offensive" characters in a string need to be escaped using the backslash character
60+- 널값은 싱글쿼터 **Null** 또는 소문자 **null**로 표기 되어야 합니다.
61+- 다른 오브젝트 타입일 경우 예를들면 날자나, 그외 문자열일경우 문자열로 표기되어야 합니다.
62+- Each member of an object or each array value must be followed by a comma if it is not the last one
63+- json 일반적 확장자는다음과 같습니다. **.json**
64+- json파일의 MIME 타입은 다음과 같습니다. **application/json**
65+
66+## 구현
67+
68+JSON implementation is not very strict, and a lot of leeway is granted to the client application and/or parser to enforce the guidelines. As usual when writing code:
69+
70+- be liberal in what you accept
71+- be strict (adhering to the standard) in what you send.
72+
73+There are two main implementations of JSON:
74+
75+### 일반적인 JSON 상세 구문
76+
77+This implementation adheres strictly to the RFC 4627 guidelines above and does not allow deviation from the specification.
78+
79+### 자바스크립트 구문
80+
81+This implementation follows the implementation of the Javascript programming language and as such allows for a few deviations from the official specification. For example:
82+
83+1. allows un-quoted keys eg `{name: "John Doe" }`
84+2. allows single quotes for keys and/or string values; and a liberal mix of single and double quotes eg `{'name': "John Doe", "language":'Pascal'}`
85+3. allows trailing comma after the last member of an array and/or object eg `{"keywords":["if","begin","for",], "IDEs":["Lazarus","fpIDE","MSEide"],}`
86+
87+## 같이보기
88+
89+- [[fcl-json]] package that implements JSON for FreePascal and Lazarus
90+- [Official JSON website](http://www.json.org)
91+- [[Streaming JSON/de]] - (Original German article)
92+- [[Streaming JSON/ru]] - (Russian translation from English )
93+- [[Streaming JSON/ko]] - (korean translation from English )
94+- [[Streaming JSON]] - (English translation from original German)
95+
96+---
97+*From the Free Pascal wiki, page "JSON/ko", as it stood on 2017-02-24 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history