Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
192 views
in Technique[技术] by (71.8m points)

How to validate and compact JSON string in Java without Jackson or Gson?

I am looking for a fast alternative to validate and minify JSON strings in Java. I can use Jackson to parse the JSON String into JsonNode and write it back into a string. I want to avoid doing that as it can be costly. The performance is an importance factor in the application I am building. Is there a simpler alternative to validating and compacting JSON Strings?

Alternatively, is there a minimal dependency of Jackson I can use to achieve this?

question from:https://stackoverflow.com/questions/66056210/how-to-validate-and-compact-json-string-in-java-without-jackson-or-gson

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...