{"action":"created","issue":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/462","labels_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/462/labels{/name}","comments_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/462/comments","events_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/462/events","html_url":"https://github.com/openresty/lua-nginx-module/issues/462","id":59501155,"number":462,"title":"Parse PHP array syntax","user":{"login":"JoyceBabu","id":502942,"avatar_url":"https://avatars.githubusercontent.com/u/502942?v=3","gravatar_id":"","url":"https://api.github.com/users/JoyceBabu","html_url":"https://github.com/JoyceBabu","followers_url":"https://api.github.com/users/JoyceBabu/followers","following_url":"https://api.github.com/users/JoyceBabu/following{/other_user}","gists_url":"https://api.github.com/users/JoyceBabu/gists{/gist_id}","starred_url":"https://api.github.com/users/JoyceBabu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JoyceBabu/subscriptions","organizations_url":"https://api.github.com/users/JoyceBabu/orgs","repos_url":"https://api.github.com/users/JoyceBabu/repos","events_url":"https://api.github.com/users/JoyceBabu/events{/privacy}","received_events_url":"https://api.github.com/users/JoyceBabu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-02T16:04:04Z","updated_at":"2015-03-03T23:30:53Z","closed_at":null,"body":"Is it possible to read post data encoded in PHP array syntax? For example, to submit a JSON array `{a: [1, 2], b: 3}`, Lua module expects the data to be encoded as \r\n\r\n    a=1&a=2&b=3\r\n\r\nPHP/Rails expects it to be encoded as \r\n\r\n    a[]=1&a[]=2&b=3\r\n\r\nSome of the advantages of the above format are\r\n- Support for arrays with single value\r\n- Support for multi dimensional arrays\r\n- This is the default serialization format for jQuery `$.post`/`$.get`"},"comment":{"url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/comments/77062895","html_url":"https://github.com/openresty/lua-nginx-module/issues/462#issuecomment-77062895","issue_url":"https://api.github.com/repos/openresty/lua-nginx-module/issues/462","id":77062895,"user":{"login":"agentzh","id":56241,"avatar_url":"https://avatars.githubusercontent.com/u/56241?v=3","gravatar_id":"","url":"https://api.github.com/users/agentzh","html_url":"https://github.com/agentzh","followers_url":"https://api.github.com/users/agentzh/followers","following_url":"https://api.github.com/users/agentzh/following{/other_user}","gists_url":"https://api.github.com/users/agentzh/gists{/gist_id}","starred_url":"https://api.github.com/users/agentzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agentzh/subscriptions","organizations_url":"https://api.github.com/users/agentzh/orgs","repos_url":"https://api.github.com/users/agentzh/repos","events_url":"https://api.github.com/users/agentzh/events{/privacy}","received_events_url":"https://api.github.com/users/agentzh/received_events","type":"User","site_admin":false},"created_at":"2015-03-03T23:30:53Z","updated_at":"2015-03-03T23:30:53Z","body":"@JoyceBabu You can always construct such things yourself. ngx_lua is a low level platform and I don't want to implement all such nonstandard sugar and tricks in it."}}