We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PrettyFormat error
请填写以下信息:
record Person (String name) {} public static void main(String[] args) throws JSONException { var p = new Person("foo"); System.out.println(JSON.toJSONString(p, JSONWriter.Feature.PrettyFormat)); var jo = new JSONObject(); jo.put("name", "foo"); System.out.println(JSON.toJSONString(jo, JSONWriter.Feature.PrettyFormat)); }
{ "name":"foo" } { }
{ "name":"foo" } { "name":"foo" }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题描述
PrettyFormat error
环境信息
请填写以下信息:
重现步骤
期待的正确结果
The text was updated successfully, but these errors were encountered: