diff options
author | Jesper Lundgren <jesperlundgren@exosite.com> | 2020-03-09 16:12:24 +0800 |
---|---|---|
committer | 罗泽轩 <spacewanderlzx@gmail.com> | 2020-03-24 09:03:48 +0800 |
commit | 0df488874f52a881d14b5876babaa780bb6200ee (patch) | |
tree | fc41c7a1842662e6b411f83b8ab4a7776244f806 /README.md | |
parent | 9931667547e2eda9911ec07b0f408b1a04b8a46c (diff) | |
download | lua-cjson-2.1.0.8rc1.tar.gz lua-cjson-2.1.0.8rc1.tar.bz2 lua-cjson-2.1.0.8rc1.zip |
feature: add option to disable forward slash escaping2.1.0.8rc12.1.0.8
Thanks @spacewander for optimization and documentation.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -14,6 +14,7 @@ Table of Contents | |||
14 | * [array_mt](#array_mt) | 14 | * [array_mt](#array_mt) |
15 | * [empty_array_mt](#empty_array_mt) | 15 | * [empty_array_mt](#empty_array_mt) |
16 | * [encode_number_precision](#encode_number_precision) | 16 | * [encode_number_precision](#encode_number_precision) |
17 | * [encode_escape_forward_slash](#encode_escape_forward_slash) | ||
17 | * [decode_array_with_array_mt](#decode_array_with_array_mt) | 18 | * [decode_array_with_array_mt](#decode_array_with_array_mt) |
18 | 19 | ||
19 | Description | 20 | Description |
@@ -158,6 +159,18 @@ This fork allows encoding of numbers with a `precision` up to 16 decimals (vs. 1 | |||
158 | 159 | ||
159 | [Back to TOC](#table-of-contents) | 160 | [Back to TOC](#table-of-contents) |
160 | 161 | ||
162 | encode_escape_forward_slash | ||
163 | --------------------------- | ||
164 | **syntax:** `cjson.encode_escape_forward_slash(enabled)` | ||
165 | |||
166 | **default:** true | ||
167 | |||
168 | If enabled, forward slash '/' will be encoded as '\/'. | ||
169 | |||
170 | If disabled, forward slash '/' will be encoded as '/' (no escape is applied). | ||
171 | |||
172 | [Back to TOC](#table-of-contents) | ||
173 | |||
161 | decode_array_with_array_mt | 174 | decode_array_with_array_mt |
162 | -------------------------- | 175 | -------------------------- |
163 | **syntax:** `cjson.decode_array_with_array_mt(enabled)` | 176 | **syntax:** `cjson.decode_array_with_array_mt(enabled)` |