if (!StringUtils.hasContent(content)) {
return null;
}
// remove nulls - workaround for bug in xmlserializer!?
content = content.replaceAll("\\\\u0000", "");
JSON json = new JsonUtil().parseTrimmedText(content);
JsonXmlSerializer serializer = new JsonXmlSerializer();
serializer.setTypeHintsEnabled(false);
serializer.setRootName("Response");
serializer.setNamespace("", "json");
content = serializer.write(json);