I want to deserialize a json string containing a null value in Java. I want to deserialize an object to a Properties object. The json line looks something like this:
{"prop1":null, "propr2":"fancy value"}
When I deserialize with
String json =
I get a null pointer exception due to the Hastable that is in the Properties object. How can I instruct Gson to ignore null deserialization?
source share