add a comment explaining the ordering

This commit is contained in:
Simulant
2024-02-25 09:47:40 +01:00
parent d17bbbd417
commit df0e3e9ab7

View File

@@ -2701,6 +2701,7 @@ public class JSONObject {
if (value == null || value.equals(null)) {
writer.write("null");
} else if (value instanceof JSONString) {
// JSONString must be checked first, so it can overwrite behaviour of other types below
Object o;
try {
o = ((JSONString) value).toJSONString();