标签: lua openresty
让我说我用-d 'session[username]=name&session[password]=pwd'
-d 'session[username]=name&session[password]=pwd'
在lua中,我得到{"session[password]":"pwd","session[username]":"name"}作为post参数。如何解析它以便将其转换为正确的JSON对象{"session":{"password:"pwd", "username":"name"}}?
{"session[password]":"pwd","session[username]":"name"}
{"session":{"password:"pwd", "username":"name"}}