Skip to content

JSON Element support #309

@RackerWilliams

Description

@RackerWilliams

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions