Use better name for parser configuration option, fix API comment.

This commit is contained in:
Robert Lichtenberger
2025-03-21 07:25:37 +01:00
parent 5d1c789490
commit 1afd7cd6bc
4 changed files with 18 additions and 17 deletions

View File

@@ -332,7 +332,7 @@ public class JSONObject {
throw new NullPointerException("Null key.");
}
final Object value = e.getValue();
if (value != null || jsonParserConfiguration.isJavaNullAsJsonNull()) {
if (value != null || jsonParserConfiguration.isUseNativeNulls()) {
testValidity(value);
this.map.put(String.valueOf(e.getKey()), wrap(value, recursionDepth + 1, jsonParserConfiguration));
}