Skip to content

Commit d634330

Browse files
committed
updated README.md
1 parent d429563 commit d634330

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Library exports json.lua like and JS like api.
3131
- `indent` - default `" "`. Accepts string of whitespace characters or a number representing number of spaces (non indented HJSON is JSON, automatically forwards to `_to_json` version)
3232
- `skipkeys` - default `true` Skips invalid keys. If false throws error on invalid key.
3333
- Valid key types: `boolean`, `nil`, `string`
34+
- `sortKeys` - whether to sort keys in objects
3435
- `item_sort_key` - sort function which is passed to `table.sort` sorting object keys
3536
- `invalidObjectsAsType` if true functions and others objects are replaced with their type name in format `__lua_<type>` e.g. `__lua_function`
3637
- Lua object to JSON - returns JSON string
@@ -42,6 +43,7 @@ Library exports json.lua like and JS like api.
4243
- `indent` - default `" "`. Accepts string of whitespace characters or a number representing number of spaces (non indented HJSON is JSON, automatically forwards to `_to_json` version)
4344
- `skipkeys` - default `true` Skips invalid keys. If false throws error on invalid key.
4445
- Valid key types: `boolean`, `nil`, `string`
46+
- `sortKeys` - whether to sort keys in objects
4547
- `item_sort_key` - sort function which is passed to `table.sort` sorting object keys
4648
- `invalidObjectsAsType` if true functions and others objects are replaced with their type name in format `__lua_<type>` e.g. `__lua_function`
4749
- H/JSON to Lua object - returns Lua object

0 commit comments

Comments
 (0)