Just some thinking out loud:
I know that the documentation suggests that Standards.JSON.decode may possibly return an object, but based on my (possibly faulty) recollection, I donât think thereâs any code that actually does that⦠weâd probably need something like decode(string json, int flags, program decode_into) or something similar, if you already knew what the datatype was supposed to be. Otherwise, youâd need a variant that consulted the âprogram selectionâ mechanism.
Well, ...
Pike v8.1 release 13 running Hilfe v3.5 (Incremental Pike Frontend)
Standards.JSON.decode("null");
(1) Result: Val.null
:)