Package | Description |
---|---|
org.apache.synapse.commons.json | |
org.apache.synapse.commons.staxon.core.json.jaxb |
JAXB support for JSON.
|
Modifier and Type | Method and Description |
---|---|
static JsonXMLOutputFactory |
JsonUtil.generateJSONOutputFactory(java.util.Properties props)
Generate factory that is used to create JSON Writers
It uses configuration that is used to format the JSON output produced by the JSON writer.
|
static JsonXMLOutputFactory |
JsonUtil.generateJSONOutputFactoryWithOveride(java.util.Properties props)
Generate factory that is used to create JSON Writers
This is will override the global configration
|
Modifier and Type | Method and Description |
---|---|
static java.lang.StringBuilder |
JsonUtil.toJsonString(org.apache.axiom.om.OMElement element,
JsonXMLOutputFactory jsonOutputFactory)
Converts an XML element to its JSON representation and returns it as a String.
|
static void |
JsonUtil.transformElement(org.apache.axiom.om.OMElement element,
boolean processAttrbs,
java.util.Map properties,
JsonXMLOutputFactory jsonOutputFactory)
Removes XML namespace declarations, and namespace prefixes from an XML element.
|
static void |
JsonUtil.writeAsJson(org.apache.axiom.om.OMElement element,
java.io.OutputStream outputStream,
java.util.Map properties,
JsonXMLOutputFactory jsonOutputFactory) |
static void |
JsonUtil.writeAsJson(org.apache.axiom.om.OMElement element,
java.io.OutputStream outputStream,
java.util.Map properties,
JsonXMLOutputFactory jsonOutputFactory,
java.lang.String encoding)
Converts an XML element to its JSON representation and writes it to an output stream.
Note that this method removes all existing namespace declarations and namespace prefixes of the provided XML element |
Modifier and Type | Method and Description |
---|---|
protected JsonXMLOutputFactory |
JsonXMLBinder.createOutputFactory(java.lang.Class<?> type,
JsonXML config) |
Copyright © 2005-2022 Apache Software Foundation. All Rights Reserved.