You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A [JSON]/[JSON5] parserand validator with a command-line client. A [pure JavaScript version] of the service provided at [jsonlint.com].
10
+
A [JSON]/CJSON/[JSON5] parser, validator and pretty-printer with a command-line client. A [pure JavaScript version] of the service provided at [jsonlint.com].
11
11
12
12
This is a fork of the original package with the following enhancements:
13
13
14
14
* Handles multiple files on the command line (by Greg Inman).
15
15
* Walks directories recursively (by Paul Vollmer).
16
16
* Provides 100% compatible interface to the native `JSON.parse` method.
17
-
* Optionally recognizes JavaScript-style comments and single quoted strings.
17
+
* Optionally recognizes JavaScript-style comments (CJSON) and single quoted strings (JSON5).
18
18
* Optionally ignores trailing commas and reports duplicate object keys as an error.
19
19
* Supports [JSON Schema] drafts 04, 06 and 07.
20
20
* Offers pretty-printing including comment-stripping and object keys without quotes (JSON5).
@@ -30,6 +30,7 @@ Integration to the favourite task loaders for JSON file validation is provided b
You can parse a JSON string to an array of tokens and print it back to a string with some changes applied. It can be unification of whitespaceor tripping comments, for example. (Raw token values must be enabled when tokenizing the JSON input.)
193
+
You can parse a JSON string to an array of tokens and print it back to a string with some changes applied. It can be unification of whitespace, reformatting or stripping comments, for example. (Raw token values must be enabled when tokenizing the JSON input.)
193
194
194
195
```js
195
196
const { tokenize } =require('@prantlf/jsonlint')
@@ -330,8 +331,10 @@ Licensed under the [MIT License].
0 commit comments