From 260a536bdc0e69b943897fcf6cb5307e3316a149 Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Fri, 11 Apr 2025 16:24:54 +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 72e183cc..f64c6164 100644 --- a/adapter/ohos/Compressor.java +++ b/adapter/ohos/Compressor.java @@ -3545,8 +3545,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