File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -207,7 +207,7 @@ The [`print`](#pretty-printing) method accepts an object `options` as the second
207
207
| --------------------------- | ------------------------------------------------------- |
208
208
| ` indent ` | count of spaces or the specific characters to be used as an indentation unit |
209
209
| ` pruneComments ` | will omit all tokens with comments |
210
- | ` stripObjectKeys ` | will not print quotes around object keys which are JavaScript identifier names |
210
+ | ` stripObjectKeys ` | will not print quotes around object keys which are JavaScript identifier names |
211
211
| ` enforceDoubleQuotes ` | will surround all strings with double quotes |
212
212
| ` enforceSingleQuotes ` | will surround all strings with single quotes |
213
213
| ` trimTrailingCommas ` | will omit all trailing commas after the last object entry or array item |
@@ -243,7 +243,10 @@ The method `tokenize` has the same prototype as the method [`parse`](#module-int
243
243
244
244
``` js
245
245
const { tokenize } = require (' @prantlf/jsonlint' )
246
- const tokens = tokenize (' {"flag":true /* default */}' , { ignoreComments: true }))
246
+ const tokens = tokenize (' {"flag":true /* default */}' , {
247
+ ignoreComments: true ,
248
+ rawTokens: true
249
+ }))
247
250
// Returns the following array:
248
251
// [
249
252
// { type: 'symbol', raw: '{', value: '{' },
You can’t perform that action at this time.
0 commit comments