Re: How can I remove backslash when log format use escape=json

2018-10-18 Thread kimown
I see, really thanks to your advice. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,281635,281642#msg-281642 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

How can I remove backslash when log format use escape=json

2018-10-18 Thread kimown
Hi, I want to log my entire request_body, but access.log contains some strange backslash, how can I remove these backslash before doube quote? Here is my nginx.conf, ``` log_format main escape=json '$request_body'; access_log logs/access.log main; ``` This is my request code: ``` fetch('htt

Re: Where can I find nginScript shell

2018-01-07 Thread kimown
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 __

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