I am struggling with JSON objects and need to create a JSN structure similar to the following:
{
name: 'root',
children: [
name: 'son1',
children: [....]
]
}
Could someone please guide me on how to construct it using Javascript? Your help is greatly appreciated.