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
$ 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