Skip to content

Commit c8eee4e

Browse files
Document json.null
1 parent 59f185b commit c8eee4e

File tree

1 file changed

+4
-1
lines changed
  • docs/Runtime Environment/Library Reference

1 file changed

+4
-1
lines changed

docs/Runtime Environment/Library Reference/JSON.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,7 @@ decoded = json.decode(encoded)
6767
assert(decoded.key == "Hello")
6868
assert(type(decoded) == "table")
6969
assert(decoded.nested.nested_key == 1337)
70-
```
70+
```
71+
---
72+
## Encoding Null Values
73+
The `json.null` value — assuming you did `local json = require("json")` — can be used to encode null JSON values.

0 commit comments

Comments
 (0)