cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lambert, Michael" <mich...@michaellambert.com>
Subject dollar sign printed in json
Date Mon, 30 Jun 2014 21:38:00 GMT
I am extending an xsd string to include xml:language:

<xsd:complexType name="reasonType">
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<!-- see http://www.ietf.org/rfc/rfc3066.txt for valid values -->
<xsd:attribute ref="xml:lang" use="required" />
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>

But when i serialize it out into json i get an ugly '$' as the key to the
string value. Anyway to change it so that the key is printed differently?
"value" would be a better key name for me:

{
    "ce1.code": "BadArgument",
    "ce1.reason": {
        "$": "Bad argument error",
        "xml.lang": "en"
    }
}

Thanks!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message