switched to non-destructive json datetime encoding