Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

array input not converted #6

Open
imnobodyet opened this issue Nov 23, 2018 · 0 comments
Open

array input not converted #6

imnobodyet opened this issue Nov 23, 2018 · 0 comments

Comments

@imnobodyet
Copy link

I've tried to Array Input example, and output the converted table in json format:
local resty_post = require 'resty.post'
local post = resty_post:new()
local _pdata = post:read()
ngx.say(cjson.encode(_pdata))
Output:
{"name[0]":"Bar","name[1]":"Foo","users[0][name]":"Jane Do","users[0].title":"Mr.","user[name]":"Foo Bar","users[0].name":"John Do","users[0][title]":"Ms.","user.title":"Mr."}

What's wrong ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant