Package ch.psi.wica.infrastructure.util
Class JsonStringFormatter
java.lang.Object
ch.psi.wica.infrastructure.util.JsonStringFormatter
Provides a utility class for nicely formatting a JSON string.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
prettyFormat
(String jsonInput) Formats the supplied input string in a pretty way.
-
Constructor Details
-
JsonStringFormatter
public JsonStringFormatter()
-
-
Method Details
-
prettyFormat
Formats the supplied input string in a pretty way.- Parameters:
jsonInput
- the input string.- Returns:
- the formatted result
- Throws:
RuntimeException
- if something goes wrong.
-