handle {None: None} to pickle as {"null": null}