when decode a json null value to a go Ptr, reset go value to nil if it is not nil.