diff options
author | DevJo <sa02045@naver.com> | 2021-12-13 19:50:12 +0900 |
---|---|---|
committer | Kyle <mkitigy@gmail.com> | 2021-12-27 07:55:15 +0900 |
commit | c581ac7c5b0ba9552a0e34f467c4f62050e0c455 (patch) | |
tree | 19b19a6799f4363e601ab6b24a009701e3dc186c /files/ko/web/javascript/reference/global_objects/json/stringify/index.html | |
parent | 06bc06d023186d8d36f90c88e76a9e4c03446534 (diff) | |
download | translated-content-c581ac7c5b0ba9552a0e34f467c4f62050e0c455.tar.gz translated-content-c581ac7c5b0ba9552a0e34f467c4f62050e0c455.tar.bz2 translated-content-c581ac7c5b0ba9552a0e34f467c4f62050e0c455.zip |
remove: notranslate in web/javascript/reference/global_objects
Diffstat (limited to 'files/ko/web/javascript/reference/global_objects/json/stringify/index.html')
-rw-r--r-- | files/ko/web/javascript/reference/global_objects/json/stringify/index.html | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/files/ko/web/javascript/reference/global_objects/json/stringify/index.html b/files/ko/web/javascript/reference/global_objects/json/stringify/index.html index 12de82705b..e9b9f8667f 100644 --- a/files/ko/web/javascript/reference/global_objects/json/stringify/index.html +++ b/files/ko/web/javascript/reference/global_objects/json/stringify/index.html @@ -18,7 +18,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/JSON/stringify <h2 id="구문">구문</h2> -<pre class="syntaxbox notranslate">JSON.stringify(<var>value</var>[, <var>replacer</var>[, <var>space</var>]])</pre> +<pre class="syntaxbox">JSON.stringify(<var>value</var>[, <var>replacer</var>[, <var>space</var>]])</pre> <h3 id="매개변수">매개변수</h3> @@ -54,7 +54,7 @@ translation_of: Web/JavaScript/Reference/Global_Objects/JSON/stringify <li>열거 불가능한 속성들은 무시된다.</li> </ul> -<pre class="brush: js notranslate">JSON.stringify({}); // '{}' +<pre class="brush: js">JSON.stringify({}); // '{}' JSON.stringify(true); // 'true' JSON.stringify('foo'); // '"foo"' JSON.stringify([1, 'false', false]); // '[1,"false",false]' @@ -104,7 +104,7 @@ JSON.stringify( Object.create(null, { x: { value: 'x', enumerable: false }, y: { <h4 id="함수에_대한_예제">함수에 대한 예제</h4> -<pre class="brush: js notranslate">function replacer(key, value) { +<pre class="brush: js">function replacer(key, value) { if (typeof value === "string") { return undefined; } @@ -121,7 +121,7 @@ var jsonString = JSON.stringify(foo, replacer); <p><code>replacer</code> 가 배열인 경우, 그 배열의 값은 JSON 문자열의 결과에 포함되는 속성의 이름을 나타낸다.</p> -<pre class="brush: js notranslate">JSON.stringify(foo, ['week', 'month']); +<pre class="brush: js">JSON.stringify(foo, ['week', 'month']); // '{"week":45,"month":7}', 단지 "week" 와 "month" 속성을 포함한다 </pre> @@ -129,7 +129,7 @@ var jsonString = JSON.stringify(foo, replacer); <p><code>space</code> 매개변수는 최종 문자열의 간격을 제어한다. 숫자일 경우 최대 10자 만큼의 공백 문자 크기로 들여쓰기되며, 문자열인 경우 해당 문자열 또는 처음 10자 만큼 들여쓰기 된다.</p> -<pre class="brush: js notranslate">JSON.stringify({ a: 2 }, null, ' '); +<pre class="brush: js">JSON.stringify({ a: 2 }, null, ' '); // '{ // "a": 2 // }' @@ -137,7 +137,7 @@ var jsonString = JSON.stringify(foo, replacer); <p>'\t'를 사용하면 일반적으로 들여쓰기 된 코드스타일과 유사함.</p> -<pre class="brush: js notranslate">JSON.stringify({ uno: 1, dos: 2 }, null, '\t'); +<pre class="brush: js">JSON.stringify({ uno: 1, dos: 2 }, null, '\t'); // returns the string: // '{ // "uno": 1, @@ -149,7 +149,7 @@ var jsonString = JSON.stringify(foo, replacer); <p>If an object being stringified has a property named <code>toJSON</code> whose value is a function, then the <code>toJSON()</code> method customizes JSON stringification behavior: instead of the object being serialized, the value returned by the <code>toJSON()</code> method when called will be serialized. For example:</p> -<pre class="brush: js notranslate">var obj = { +<pre class="brush: js">var obj = { foo: 'foo', toJSON: function() { return 'bar'; @@ -167,7 +167,7 @@ JSON.stringify({ x: obj }); // '{"x":"bar"}' <p>Functions are not a valid JSON data type so they will not work. However, they can be displayed if first converted to a string (e.g. in the replacer), via the function's toString method. Also, some objects like {{jsxref("Date")}} will be a string after {{jsxref("JSON.parse()")}}.</p> </div> -<pre class="brush: js notranslate">// Creating an example of JSON +<pre class="brush: js">// Creating an example of JSON var session = { 'screens': [], 'state': true |