json serialization

This lets it serialize things like inflated DateTime objects.