I've a formatted json.
I want to display it as a one line string in Java.
Any library would help(preferably org.json
)
Asked
Active
Viewed 295 times
1

Lakshit Pande
- 19
- 4
-
you can sysout(json); – Shivam Nov 24 '15 at 11:50
-
First question would be: why? – Thomas Nov 24 '15 at 11:52
-
replace linebreaker would be easy – 王子1986 May 20 '20 at 03:19