public class JsonUtils extends Object
| Constructor and Description |
|---|
JsonUtils() |
| Modifier and Type | Method and Description |
|---|---|
String |
cleanUnwantedJsonCharsInXmlTagnames(String bufferStr)
https://www.w3.org/TR/REC-xml/#charencoding shows character enoding in entities
*
|
String |
convertToXML(String jsonRecord) |
String |
syntaxConvertJsonKeyNames(String jsonInput)
convert in JSON-KeyName 'whitespace(s)' to '_' and '/' to '_', '(' and ')' to ''
check W3C XML syntax: https://www.w3.org/TR/2006/REC-xml11-20060816/#sec-starttags for valid tag names
and work-around for the JSON to XML converting of org.json.XML-package.
|
public static final String wrapName
public String syntaxConvertJsonKeyNames(String jsonInput)
jsonInput - public String cleanUnwantedJsonCharsInXmlTagnames(String bufferStr)
bufferStr - - XML stringCopyright © 2024. All rights reserved.