How to display a JSON structure with an array value as plain columns ?

Hi,

I have a JSON data of following pattern:

[{id0:“1”, id1:“Smith”, id2:“green”, id3:“102”, id4:[{“name”:“England”, “capital”:“London”, “population”:“5.3crores”} ]},

The id4 key above is pointing to an array which I want to display adjacent to ‘phone’ (id3) column in a flattened manner.

My snippet is here:

https://snippet.webix.com/scyv3blt

Please help me to achieve this.

Thanks.

if you want to show this as static content, perhaps column template will solve it
https://docs.webix.com/datatable__templates.html
or you can try to define datatable using activecontent
https://docs.webix.com/api__activecontent_activecontent_config.html
but I would recommend using subview for such purpose (PRO version)
https://docs.webix.com/api__ui.datatable_subview_config.html