diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
| @@ -262,3 +262,16 @@ cjson.encode(t) -- {"my_array":[]} properly re-encoded as an array | |||
| 262 | ``` | 262 | ``` |
| 263 | 263 | ||
| 264 | [Back to TOC](#table-of-contents) | 264 | [Back to TOC](#table-of-contents) |
| 265 | |||
| 266 | decode_allow_comments | ||
| 267 | -------------------------- | ||
| 268 | **syntax:** `cjson.decode_allow_comments(enabled)` | ||
| 269 | |||
| 270 | **default:** false | ||
| 271 | |||
| 272 | If enabled, allows JavaScript-style comments in `cjson.decode` input. Comments | ||
| 273 | are treated as whitespace and may appear anywhere whitespace is valid in JSON. | ||
| 274 | Supports single-line comments beginning with '//' and block comments enclosed | ||
| 275 | with '/* ... */'. | ||
| 276 | |||
| 277 | [Back to TOC](#table-of-contents) | ||
