From 3c53077f9d6bda33eade28f02d792c391723b444 Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Wed, 30 Apr 2025 15:11:03 +0800 Subject: [PATCH] json_one_liner 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 256d7ef5..dce02533 100644 --- a/adapter/ohos/Compressor.java +++ b/adapter/ohos/Compressor.java @@ -3565,8 +3565,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