From 55ddd4454665a3c66e3d5b186bc79048468d36e7 Mon Sep 17 00:00:00 2001 From: Alexey Pyltsyn Date: Mon, 15 Mar 2021 14:29:50 +0300 Subject: Auto fixes --- files/ru/web/javascript/reference/global_objects/json/index.html | 2 +- files/ru/web/javascript/reference/global_objects/json/parse/index.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'files/ru/web/javascript/reference/global_objects/json') diff --git a/files/ru/web/javascript/reference/global_objects/json/index.html b/files/ru/web/javascript/reference/global_objects/json/index.html index 2f1befd589..14b96afbc2 100644 --- a/files/ru/web/javascript/reference/global_objects/json/index.html +++ b/files/ru/web/javascript/reference/global_objects/json/index.html @@ -53,7 +53,7 @@ eval(code); // ошибка -

Ниже представлен полный синтаскис JSON:

+

Ниже представлен полный синтаксис JSON:

JSON = null
     or true or false
diff --git a/files/ru/web/javascript/reference/global_objects/json/parse/index.html b/files/ru/web/javascript/reference/global_objects/json/parse/index.html
index febd8ba943..3216ab34e2 100644
--- a/files/ru/web/javascript/reference/global_objects/json/parse/index.html
+++ b/files/ru/web/javascript/reference/global_objects/json/parse/index.html
@@ -135,7 +135,7 @@ JSON.parse('{"1": 1, "2": 2, "3": {"4": 4, "5": {"6": 6}}}', function(k, v) {
 

На основе таблицы совместимости Kangax.

Примечания по Gecko

-

Начиная с Gecko 29 {{geckoRelease("29")}}, при передаче некорректной строки JSON выдаётся более подробное собщение об ошибке, содержащее номер строки и колонки, в которых была обнаружена ошибка разбора. Это полезно при отладке больших данных JSON.

+

Начиная с Gecko 29 {{geckoRelease("29")}}, при передаче некорректной строки JSON выдаётся более подробное сообщение об ошибке, содержащее номер строки и колонки, в которых была обнаружена ошибка разбора. Это полезно при отладке больших данных JSON.

JSON.parse('[1, 2, 3,]');
 // SyntaxError: JSON.parse: unexpected character at
 // line 1 column 10 of the JSON data
-- 
cgit v1.2.3-54-g00ecf