From c0bd64a0351f1d31e5869d1a62806ecefa1de0c8 Mon Sep 17 00:00:00 2001 From: Shinovon Date: Thu, 5 Sep 2024 20:16:17 +0500 Subject: [PATCH] Update nnjson --- src/cc/nnproject/json/JSONObject.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc/nnproject/json/JSONObject.java b/src/cc/nnproject/json/JSONObject.java index 91a6264..161c6b5 100644 --- a/src/cc/nnproject/json/JSONObject.java +++ b/src/cc/nnproject/json/JSONObject.java @@ -220,11 +220,11 @@ public void put(String name, Object obj) { } public void put(String name, AbstractJSON json) { - table.put(name, json); + table.put(name, json == null ? JSON.json_null : json); } public void put(String name, String s) { - table.put(name, s); + table.put(name, s == null ? JSON.json_null : s); } public void put(String name, int i) {