How to force gson to throw exception if i have extra fields (unknown properties) JSON

后端 未结 0 1089

I want to force GSON to throw exception if in json is extra field that is not in my POJO java object during deserialization. By default extra fields are simply ignored, but i ne

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