JSON Patterns
These patterns were taken from a series of notes scrawled on the walls of the room of a Douglas Crockford shortly before their disappearence.
They describe ways of creating and manipulating a dictionary-like object which uses Strings for keys and a select range of iotas as values. I wonder what the practical applications are...
Jason's Gambit (str → json)
Turns the given String into a JSON object. If it cannot be parsed into a JSON object itself, a wrapper JSON object will be created.
Jason's Purification II (json, str → any)
Gets the stored iota at the given key. Mishaps upon their being no iota.
Jason's Exaltation (json, str, any → json)
Sets the given iota at the given key. Setting a Garbage iota removes the key.