Add JSON parser and producer modules

These are cloned and adapted from their YAML counterparts.