On 07.01.2018 17:06, kimown wrote:
I find the associated code, thanks for your help, but I'm not familiar with
how to building the nginScript shell, I think it's better add instruction in
README.Also, nginScript is really really awesome.
It is available as a part of nginx official packages.
I find the associated code, thanks for your help, but I'm not familiar with
how to building the nginScript shell, I think it's better add instruction in
README.Also, nginScript is really really awesome.
Posted at Nginx Forum:
https://forum.nginx.org/read.php?2,278033,278035#msg-278035
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
$ 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;