aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.md b/README.md
index d2094b1..233a094 100644
--- a/README.md
+++ b/README.md
@@ -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
266decode_allow_comments
267--------------------------
268**syntax:** `cjson.decode_allow_comments(enabled)`
269
270**default:** false
271
272If enabled, allows JavaScript-style comments in `cjson.decode` input. Comments
273are treated as whitespace and may appear anywhere whitespace is valid in JSON.
274Supports single-line comments beginning with '//' and block comments enclosed
275with '/* ... */'.
276
277[Back to TOC](#table-of-contents)