access to the json fields with webix

Hello,

I’m beginner with webix.

I started to link my mongoDB and got finally the data in a datatable and to see the basics.

So, as you expect, I manipulate Json data, complex and not structured data.
I started using pivot.

this is an example of my json data 
{"_id":"55488","modified":"2014-10-28T22:11:59.760Z",  "to" : {
        "agency" : ObjectId("554dc49337c1482c491bcaef"), 
        "place" : ObjectId("554dc49337c1482c491bcaf0"), 
        "date" : ISODate("2014-04-25T18:15:00.000+0000"), 
        "ticket" : {
            "travelling" : true, 
            "reference" : "QR37"
        }
    }
}

I want to access to the ‘to’ fields.

and this is a snippet.

http://webix.com/snippet/de365cf2

with a simple data as a test…

Any suggestion would be appreciated.
thanks

Hi,

a) the snippet tool has not pivot enabled by default
b) pivot expects plain data, if you have sub-objects, you can use “scheme” to create plain properties

http://webix.com/snippet/c8409bc2