public static class JSONConfiguration.MappedJettisonBuilder extends JSONConfiguration.Builder
JSONConfiguration
options
for the JSONConfiguration.Notation.MAPPED_JETTISON
convention.arrays, attrsAsElems, humanReadableFormatting, jsonXml2JsonNs, namespaceSeparator, nonStrings, rootUnwrapping, usePrefixAtNaturalAttributes
Modifier and Type | Method and Description |
---|---|
JSONConfiguration.MappedJettisonBuilder |
xml2JsonNs(java.util.Map<java.lang.String,java.lang.String> jsonXml2JsonNs)
Setter for XML to JSON namespace mapping.
|
build
public JSONConfiguration.MappedJettisonBuilder xml2JsonNs(java.util.Map<java.lang.String,java.lang.String> jsonXml2JsonNs)
JSONConfiguration.Notation.MAPPED_JETTISON
and JSONConfiguration.Notation.MAPPED
notations only.
The value is a map with zero or more key/value pairs, where the key is an XML namespace and the value is the prefix to use as the replacement for the XML namespace.
The default value is a map with zero key/value pairs.
Copyright © 2016 Oracle Corporation. All Rights Reserved.