You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Library exports json.lua like and JS like api.
31
31
-`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)
32
32
-`skipkeys` - default `true` Skips invalid keys. If false throws error on invalid key.
33
33
- Valid key types: `boolean`, `nil`, `string`
34
+
-`sortKeys` - whether to sort keys in objects
34
35
-`item_sort_key` - sort function which is passed to `table.sort` sorting object keys
35
36
-`invalidObjectsAsType` if true functions and others objects are replaced with their type name in format `__lua_<type>` e.g. `__lua_function`
36
37
- Lua object to JSON - returns JSON string
@@ -42,6 +43,7 @@ Library exports json.lua like and JS like api.
42
43
-`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)
43
44
-`skipkeys` - default `true` Skips invalid keys. If false throws error on invalid key.
44
45
- Valid key types: `boolean`, `nil`, `string`
46
+
-`sortKeys` - whether to sort keys in objects
45
47
-`item_sort_key` - sort function which is passed to `table.sort` sorting object keys
46
48
-`invalidObjectsAsType` if true functions and others objects are replaced with their type name in format `__lua_<type>` e.g. `__lua_function`
0 commit comments