mcmodwiki
Mods › HexWeb › Guidebook › JSON Patterns

JSON Patterns

HexWeb 1.1.0.

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...

Creates an empty JSON object.

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.

Checks whether the given JSON iota has the given key.

Gets the stored iota at the given key. Mishaps upon their being no iota.

Sets the given iota at the given key. Setting a Garbage iota removes the key.

What it is about

Sculk Sensor
Mods › HexWeb › Guidebook › JSON Patterns