How do I change Serde's default implementation to return an empty object instead of null?
问题 I'm developing an API wrapper and I'm having some troubles with the deserialization of an empty JSON object. The API returns this JSON object. Mind the empty object at entities : { "object": "page", "entry": [ { "id": "1158266974317788", "messaging": [ { "sender": { "id": "some_id" }, "recipient": { "id": "some_id" }, "message": { "mid": "mid.$cAARHhbMo8SBllWARvlfZBrJc3wnP", "seq": 5728, "text": "test", "nlp": { "entities": {} // <-- here } } } ] } ] } This is my equivalent struct of the