Package io.wcm.maven.plugins.i18n
Class JsonUtil
java.lang.Object
io.wcm.maven.plugins.i18n.JsonUtil
Helper methods for JSON handling.
-
Method Summary
Modifier and TypeMethodDescriptionstatic jakarta.json.JsonObjectfromString(String jsonString) Parse JSON string to JSON object.static StringtoString(jakarta.json.JsonObject jsonObject) Serialize JSON object to String.
-
Method Details
-
toString
Serialize JSON object to String.- Parameters:
jsonObject- JSON object- Returns:
- String
-
fromString
Parse JSON string to JSON object.- Parameters:
jsonString- JSON string- Returns:
- JSON object
- Throws:
IOException- if JSON parsing fails
-