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
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@ This is a fork of the original project ([zaach/jsonlint](https://github.com/zaac
14
14
* Provides 100% compatible interface to the native `JSON.parse` method.
15
15
* Optionally recognizes JavaScript-style comments (CJSON) and single quoted strings (JSON5).
16
16
* Optionally ignores trailing commas and reports duplicate object keys as an error.
17
+
* Optionally checks that also the expected format matches, including sorted object keys.
17
18
* Supports [JSON Schema] drafts 04, 06 and 07.
18
19
* Offers pretty-printing including comment-stripping and object keys without quotes (JSON5).
19
20
* Prefers the native JSON parser if possible to run [7x faster than the custom parser].
@@ -92,6 +93,23 @@ The same parameters can be passed from a configuration file:
92
93
}
93
94
```
94
95
96
+
The input can be checked not only to be a valid JSON, but also to be formatted according to the coding standard. For example, check that there is a trailing li break in each JSON file, in addition to alphabetically sorted keys and no duplicate keys:
0 commit comments