diff --git a/adapter/ohos/Compressor.java b/adapter/ohos/Compressor.java index 256d7ef59d9436fc708af7155073914b7024e68e..dce02533fc7798128c48489c28f93f78381f977e 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);