JSON-java icon indicating copy to clipboard operation
JSON-java copied to clipboard

how to make a pretty-printed XML text from JSONObject?

Open xiejx618 opened this issue 3 years ago • 5 comments

org.json.JSONObject#toString(int) has an indentFactor parameter, but org.json.XML.toString does not have an indentFactor parameter

xiejx618 avatar Mar 12 '21 01:03 xiejx618

No objections if you want to submit a PR with support for formatted XML output. If you do so, recommend that you use JSONObject.toString(int) as a model, if possible.

stleary avatar Mar 12 '21 03:03 stleary

Hi, I am looking into this issue.

yyds5 avatar Oct 14 '21 17:10 yyds5

I am going to look into this.

DeaneOC avatar Oct 05 '22 09:10 DeaneOC

Hi! I am going to look into this issue

Avimathu avatar Oct 06 '22 02:10 Avimathu

Hi! I am going to look into this issue

I am already working on this @Avimathu

DeaneOC avatar Oct 06 '22 09:10 DeaneOC

https://github.com/stleary/JSON-java/pull/694 was merged. Issue may be closed.

javadev avatar Dec 23 '22 09:12 javadev

Closed due to work being completed in #694

stleary avatar Dec 23 '22 18:12 stleary