Re: Where can I find nginScript shell

2018-01-06 Thread Maxim Konovalov
Hello, On 06/01/2018 11:52, kimown wrote: > $ njs > interactive njscript > > v. -> the properties and prototype methods of v. > type console.help() for more information > > >>> var my_data = '{"colors":[{"name":"red","fancy":"brick dust"}, > {"name":"blue","fancy":"sea spray"}]}'; >>> var my_ob

Where can I find nginScript shell

2018-01-06 Thread kimown
$ njs interactive njscript v. -> the properties and prototype methods of v. type console.help() for more information >> var my_data = '{"colors":[{"name":"red","fancy":"brick dust"}, {"name":"blue","fancy":"sea spray"}]}'; >> var my_object = JSON.parse(my_data); >> my_object.colors[1].fancy; sea