Added json readers and writers.

Readers and writers facilitate the type safe conversion of data
structures to and from json data structures.