From 8897ded6da7226d26b4aaa37b5f890191ac21464 Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Mon, 21 Apr 2025 16:02:44 +0800 Subject: [PATCH] fix_json Signed-off-by: lanhaoyu --- adapter/ohos/Compressor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/adapter/ohos/Compressor.java b/adapter/ohos/Compressor.java index b36f8ea4..b6ba2916 100644 --- a/adapter/ohos/Compressor.java +++ b/adapter/ohos/Compressor.java @@ -3404,8 +3404,8 @@ public class Compressor { private void writeJson(String jsonFilePath, JSONObject jsonObject) throws IOException, BundleException { BufferedWriter bw = null; try { - String pretty = JSON.toJSONString(jsonObject, SerializerFeature.PrettyFormat, - SerializerFeature.WriteMapNullValue, SerializerFeature.WriteDateUseDateFormat); + String pretty = JSON.toJSONString(jsonObject, SerializerFeature.WriteMapNullValue, + SerializerFeature.WriteDateUseDateFormat); bw = new BufferedWriter(new OutputStreamWriter( new FileOutputStream(jsonFilePath), StandardCharsets.UTF_8)); bw.write(pretty); -- Gitee