Is there a bonus to describing the deeper-nested objects as references rather
than directly as in this example:
http://www.nabble.com/file/p23196054/order_combined.json order_combined.json
? It seems to add obfuscation for deeply-nested arrays.
Would code to convert my original $testArr to the format you outline, or the
outline above, be a good solution for Zend_Dojo_Data? If so I'll try to put
something together.
M
Matthew Weier O'Phinney-3 wrote:
>
>
> Unfortunately, there's not a truly easy way to do this. The format for
> such hierarchical stores is a bit different:
>
> {
> name: "top",
> description: "some description",
> children: [
> { _reference: "someName" }
> ]
> },
> {
> name: "someName",
> description: "some description2",
> children: [
> { _reference: "someDeepName" },
> { _reference: "someOtherDeepName" },
> ]
> },
> {
> name: "someDeepName",
> description: "some deep description2",
> },
> {
> name: "someOtherDeepName",
> description: "some deep description4",
> },
>
> Notice that all items are at the same level, and that the "children"
> element of each object is an array of objects referring to other
> objects.
>
>
>
--
View this message in context:
http://www.nabble.com/RFC%3A-Zend_Dojo_Data---associative-arrays-tp23175415p23196054.html
Sent from the Zend Framework mailing list archive at Nabble.com.