Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Table of Contents
* [encode_escape_forward_slash](#encode_escape_forward_slash)
* [encode_skip_unsupported_value_types](#encode_skip_unsupported_value_types)
* [encode_indent](#encode_indent)
* [encode_sort_keys](#encode_sort_keys)
* [decode_array_with_array_mt](#decode_array_with_array_mt)
* [decode_allow_comment](#decode_allow_comment)

Expand Down Expand Up @@ -228,6 +229,17 @@ print(cjson.encode({ a = 1, b = { c = 2 } }))

[Back to TOC](#table-of-contents)

encode_sort_keys
---------------------------
**syntax:** `cjson.encode_sort_keys(enabled)`

**default:** false

If enabled, keys in encoded objects will be sorted lexicographically before
JSON string escaping is applied.

[Back to TOC](#table-of-contents)

decode_array_with_array_mt
--------------------------
**syntax:** `cjson.decode_array_with_array_mt(enabled)`
Expand Down
Loading