Add a JSON data structure.

The new class util::json is a data structure for JSON values.

Relates #48.