Ich verwende JSON, um eine Eingabezeichenfolge zu deserialisieren, die einen null
-Wert für bestimmte hashmap-Eigenschaft enthält. Hat jemand eine Ahnung, warum diese Ausnahme auftritt? Ist es möglich, dass null
nicht als Wert akzeptiert wird Ist das irgendwie konfigurierbar?Java - JSON Null-Ausnahme
Eingangsabtastwert:
{"prop1":"val1", "prop2":123, "prop3":null}
Stacktrace:
net.sf.json.JSONException: null object
at net.sf.json.JSONObject.verifyIsNull(JSONObject.java:2856)
at net.sf.json.JSONObject.isEmpty(JSONObject.java:2212)
Dank.
Danke für Ihre Antwort. – thelost