[Openstack] Problem with "values" in JSON responses

Jay Pipes jaypipes at gmail.com
Wed May 4 00:20:01 UTC 2011


On Tue, May 3, 2011 at 7:58 PM, Jorge Williams
<jorge.williams at rackspace.com> wrote:
> On May 3, 2011, at 6:29 PM, Eldar Nugaev wrote:
>> Could you please provide information - why we want to see "values"
>> field in JSON and who is responsable for implementation this
>> specification in OS API 1.1?
>>
>
> We use "values" as a first attempt to add extensibility to collections in JSON.  We had a lengthy discussion about this at the summit.  To summarize:  there's no really easy/clean way of doing this as JSON is not extensible.

Hmm, I might have summarized our discussion differently :P

> We're currently exploring other approaches, so values may go away in the long term.  The 1.1 spec is not set in stone in this regard.

Right. I think we came to a decision to try running the XML through an
automated JSON-ifier and using the output of that as a starting point.

-jay




More information about the Openstack mailing list