Add JSON parser and producer

These are cloned and adapted from their YAML counterparts. I was surprised JSON modules weren't there before, but perhaps simply not many people have needed them yet. Anyway, they're working nicely for me now and this pull request includes tests.