I see, really thanks to your advice.by kimown - Nginx Mailing List - English
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('http://localhost:8080/njs',{ method:'POST', body:JSON.stringify({ text:'message with backsby kimown - Nginx Mailing List - English
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.by kimown - Nginx Mailing List - English
$ njs interactive njscript v.<Tab> -> 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); >>by kimown - Nginx Mailing List - English