improve json null serialization