configure JSON serializer to handle blessed objects

This lets it serialize things like inflated DateTime objects.