public final class JsonToXmlExtensions extends Object
JsonToXmlExtensions helps to transform a given json string to an xml string.| Constructor and Description |
|---|
JsonToXmlExtensions() |
| Modifier and Type | Method and Description |
|---|---|
static String |
toXml(String jsonString)
|
static <T> String |
toXml(String jsonString,
Class<T> clazz)
|
public static <T> String toXml(String jsonString, Class<T> clazz) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
T - the generic typejsonString - the json as String objectclazz - the clazz of the generic typeString objectcom.fasterxml.jackson.core.JsonParseException - If an error occurs when parsing the string into Objectcom.fasterxml.jackson.databind.JsonMappingException - the If an error occurs when mapping the string into ObjectIOException - Signals that an I/O exception has occurred.Copyright © 2015–2019 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.