Elements can be handled a number of ways...
One example is to bind a namespace to a pattern
<rax:json-element namespace="http://rackspace.com/" path="$_?type"/>
That means that if I see
<wadl:representation mediaType="application/json" element="rax:widget"/>
...where rax is bound to http://rackspace.com/
then we'd expect
{ "type" : "widget",
"name" : "My Widget"
}
The other pattern should be to wrap...
<rax:json-element namespace="http://rackspace.com/" wrap="true"/>
Then we'd expect :
{ "widget" : { "name" : "My Widget"}}
I'd say wrap and path are mutually exclusive attributes.
Elements can be handled a number of ways...
One example is to bind a namespace to a pattern
That means that if I see
...where rax is bound to http://rackspace.com/
then we'd expect
The other pattern should be to wrap...
Then we'd expect :
I'd say
wrapandpathare mutually exclusive attributes.