- 1 About
- 2 Learn About JSON
- 3 Bookmarklet
- 4 Changelog
- 4.1 November 2019
- 4.2 October 2019
- 4.3 May 2019
- 4.4 January 2019
- 4.5 December 2018
- 4.6 June 2017 v5
- 4.7 November 2017
- 4.8 October 2016
- 4.9 July 2016
- 4.10 November 2015 v4.5
- 4.11 October 2015
- 4.12 August 2015
- 4.13 October 2014
- 4.14 September 2014
- 4.15 July 2014 v4.0
- 4.16 September 2013
- 4.17 April 2013
- 4.18 March 2013
- 4.19 February 2013
- 4.20 January 2013
- 4.21 May 2011
- 4.22 February 2011 v3.0
- 4.23 November 2009
- 4.24 December 2008
- 4.25 November 2008 v2.0
- 4.26 A Long Time Ago. in 2007 v1.0
- 5 Support
- 6 Contact
JSON формат валидатор и проверки
Формат JSON широко применяется по всему веб-разработки. JSON строка всегда вырезать пробел, отступ и символ новой строки, чтобы сохранить пропускную способность сети и размер документа, но его слишком трудно читать и отлаживать. Даже ваш код JSON был минимизирован или uglified, этот инструмент может проверить JSON код и показывает сообщение дружественный ошибке вам.
Check out their products!
JSONLint is a validator and reformatter for JSON, a lightweight data-interchange format. Copy and paste, directly type, or input a URL in the editor above and let JSONLint tidy and validate your messy JSON code.
- You can directly input a URL into the editor and JSONLint will scrape it for JSON and parse it.
- You can provide JSON to lint in the URL if you link to JSONLint with the "json" parameter. Here’s an example URL to test.
- JSONLint can also be used as a JSON compressor if you add ?reformat=compress to the URL.
- Expecting ‘STRING’ — You probably have an extra comma at the end of your collection. Something like
- Expecting ‘STRING’ , ‘NUMBER’ , ‘NULL’ , ‘TRUE’ , ‘FALSE’ , ‘ <‘ , ‘[‘ — You probably have an extra comma at the end of your list. Something like: ["a", "b", ]
- Enclosing your collection keys in quotes. Proper format for a collection is
- Make sure you follow JSON’s syntax properly. For example, always use double quotes, always quotify your keys, and remove all callback functions.
If you use a Windows computer you may end up with different results. This is possibly due to the way Windows handles newlines. Essentially, if you have just newline characters (
) in your JSON and paste it into JSONLint from a Windows computer, it may validate it as valid erroneously since Windows may need a carriage return (
) as well to detect newlines properly. As a solution, either use direct URL input, or make sure your content’s newlines match the architecture your system expects!
Adblocker eh? No problem. You can support our work in other ways.
The JSON Formatter was created to help folks with debugging. As JSON data is often output without line breaks to save space, it can be extremely difficult to actually read and make sense of it. This tool hoped to solve the problem by formatting and beautifying the JSON data so that it is easy to read and debug by human beings.
To further expand the debugging capabilities, advanced JSON validation was soon added following the description set out by Douglas Crockford of json.org in RFC 4627. It has since been updated to allow validation of multiple JSON standards, including both current specifications RFC 8259 and ECMA-404.
Most recently, the capability to fix common JSON errors was added. If enabled, it will replace incorrect quotes, add missing quotes, escape unescaped characters, and remove comments and trailing commas.
Learn About JSON
To learn more about JSON check out some of the following links.
Install the JSON Formatter & Validator Bookmarklet to quickly and easily format and validate any public JSON URL with a single click.
To install, just drag the button above into your bookmarks toolbar.
- Added integration with the Mutate: Data Converter and the JSONPath Expression Tester, via new convert and query buttons.
- Added drag and drop, and browse, local file loading.
- Added capability to fix common JSON errors. It will optionally replace incorrect quotes, add missing quotes, escape unescaped characters, and remove comments and trailing commas.
- Fixed an object key string comparison issue. Thanks Gwon.
- Added the latest JSON specification, RFC 8259.
- Added performance improvements.
- Added limits to val >Thanks Khurram.
- Added error highlight toggling. Thanks Raf.
- Added a single tab, tab template.
- Added JSON val >Thanks to everyone that reported it.
- Fixed an issue when val >Thanks Rodrigo.
June 2017 v5
- Fixed a cookie bug.
- Improved images.
- Updated broken Learn About JSON links. Thanks Tony.
- Switched copy to use clipboard.js.
- Fixed a RFC 7159 val >Thanks Anonymous.
November 2015 v4.5
- Added the ability to val >Thanks Philipp.
- Fixed a parse bug. Thanks Bla.
- Added the ability expand/collapse all nodes.
- Added the ability to rename results.
- Added the ability to download results.
- Switched to HTTPS.
- Fixed a text rendering bug. Thanks Kyle.
- Fixed a template collapse/expand bug. Thanks Dmitry.
- Fixed a copied result entity bug. Thanks Jim.
- Added a four space tab template.
- Added a clear button.
- Improved grow/shrink buttons.
- Fixed a clipboard bug.
July 2014 v4.0
- Redesign of frontend.
- Updated backend from CodeIgniter to Laravel.
- Added cookies to remember options.
- Changed hosts to further improve speed.
- Added autofocus to JSON Data input.
- Fixed stripping of invisible characters. Thanks Paul.
- Fixed a typo. Thanks Anonymous.
- Added a donation button.
- Fixed a number val >Thanks Chris and Anonymous.
- Updated external libraries.
- Improved caching.
- Added ability to collapse/expand objects and arrays.
- Added a two space tab template.
- Fixed bugs reported since version 3.0.
February 2011 v3.0
- Redesign of frontend.
- Improved validation logic. String validation in particular is greatly improved.
- Improved error messages.
- Added goto error ability.
- Added ability to accept JSONP. Check out this example.
- Added ability to pass JSON URL in URL as hash. Check out this example.
- Added a bookmarklet.
- Added a button to copy results to clipboard.
- Removed custom template capability. From now on send in template requests & examples.
- Removed Select All button.
- Upgraded hosts to improve speed.
- Added a Select All button.
- Fixed url validation and output bugs.
November 2008 v2.0
- Improved JSON formatter.
- Improved JSON parser.
- Redesign of frontend.
- Added multiple results.
- Added templates.
- Added more helpful error messages.
- Added validation.
- Added resizable textareas.
A Long Time Ago. in 2007 v1.0
- Initial release of the JSON Formatter.
Although you are in no way obligated, some users have requested a way to support the project.
A big thank you goes out to all the donors who have already contributed. Your kindness and generosity is very much appreciated.
Over the years the JSON Formatter & Validator has been immensely improved through the feedback and suggestions of its users. We encourage you to continue to pass along any new recommendations, requests or bug reports.