File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
docs/Runtime Environment/Library Reference Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -64,4 +64,9 @@ assert(decoded.nested.nested_key == 1337)
6464```
6565---
6666## Encoding Null Values
67- The ` json.null ` value — assuming you did ` local json = require("json") ` — can be used to encode null JSON values.
67+ The ` json.null ` value — assuming you did ` local json = require("json") ` — can be used to encode null JSON values.
68+ ``` pluto
69+ local json = require("json")
70+
71+ print(json.encode(json.null)) --> null
72+ ```
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Prism.languages.pluto = {
55 / \b (? ! i n \s ) (? ! \d ) (? ! r e t u r n ) (? ! c a s e ) (? ! f u n c t i o n ) (? ! l o c a l ) (? ! n e w ) \w + (? = \s * (?: \? ? \( ) ) / , // func()
66 / \b (? ! i n \s ) (? ! \d ) (? ! r e t u r n ) (? ! c a s e ) (? ! f u n c t i o n ) (? ! l o c a l ) (? ! n o t ) \w + (? = \s * (?: \? ? [ { " ] ) ) / , // func "", func {}
77 / \b ( f u n c t i o n | e n u m | c l a s s ) \b / ,
8- / \b ( d e b u g | t a b l e | s t r i n g | n u m b e r | i o | o s | c o r o u t i n e | _ V E R S I O N | _ P V E R S I O N | _ P S O U P ) \b / , // standard library + type hints
8+ / \b ( d e b u g | t a b l e | s t r i n g | n u m b e r | i o | o s | c o r o u t i n e | _ V E R S I O N | _ P V E R S I O N | _ P S O U P | j s o n \. n u l l ) \b / , // standard library + type hints
99 ] ,
1010 'attr-value' : / < ( c o n s t | c o n s t e x p r | c l o s e ) > / ,
1111 'string' : {
You can’t perform that action at this time.
0 commit comments