Session args sync: custom JSON encoder

Is there a way to pass a custom JSON encoder/decoder to pn.state.location.sync so I could encode things like timedeltas ?

Thanks,
Anton.