Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

dollar sign printed in json

$
0
0
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!

Viewing all articles
Browse latest Browse all 5648

Trending Articles