Class JsonUtils
- java.lang.Object
-
- io.micrometer.core.instrument.util.JsonUtils
-
public final class JsonUtils extends java.lang.Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
prettyPrint(java.lang.String unformattedJsonString)
Based on https://stackoverflow.com/a/49564514/510017
-
-
-
Method Detail
-
prettyPrint
public static java.lang.String prettyPrint(java.lang.String unformattedJsonString)
Based on https://stackoverflow.com/a/49564514/510017- Parameters:
unformattedJsonString
- JSON string that has not been formatted at all.- Returns:
- A best-effort at pretty printed JSON, even for malformed JSON.
-
-