First edition of a JSON serializer.
Merge branch 'json-serialize'

See #5.