Json deserialization - empty ObjectId is serialized to null

前端 未结 0 1778
梦如初夏
梦如初夏 2021-01-31 10:31

I have a field which is a ObjectId, but can contain also a valid Id but also "000000000000000000000000". I set it like this:

  [JsonProperty(PropertyNam         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题