JSON/NULL?
Tests binary if it contains a valid JSON null expression
Input stack: a
Output stack: b
JSON/NULL?
will push 1
if supplied binary contains a valid JSON null
expression, 0
otherwise
PumpkinDB> "null" JSON/NULL?
0x01
PumpkinDB> "1" JSON/NULL?
0x00
Allocation
Allocates for parsing JSON
Errors
EmptyStack error if there are less than one item on the stack
Tests
works : "null" JSON/NULL?.
works_negative : "1" JSON/NULL? NOT.
non_json : "z" JSON/NULL? NOT.
empty_stack : [JSON/NULL?] TRY UNWRAP 0x04 EQUAL?.