{"action":"opened","issue":{"url":"https://api.github.com/repos/dropbox/json11/issues/84","repository_url":"https://api.github.com/repos/dropbox/json11","labels_url":"https://api.github.com/repos/dropbox/json11/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/dropbox/json11/issues/84/comments","events_url":"https://api.github.com/repos/dropbox/json11/issues/84/events","html_url":"https://github.com/dropbox/json11/issues/84","id":193747217,"number":84,"title":"How to parse array of type string send as json object ?","user":{"login":"Shravan40","id":1205111,"avatar_url":"https://avatars.githubusercontent.com/u/1205111?v=3","gravatar_id":"","url":"https://api.github.com/users/Shravan40","html_url":"https://github.com/Shravan40","followers_url":"https://api.github.com/users/Shravan40/followers","following_url":"https://api.github.com/users/Shravan40/following{/other_user}","gists_url":"https://api.github.com/users/Shravan40/gists{/gist_id}","starred_url":"https://api.github.com/users/Shravan40/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shravan40/subscriptions","organizations_url":"https://api.github.com/users/Shravan40/orgs","repos_url":"https://api.github.com/users/Shravan40/repos","events_url":"https://api.github.com/users/Shravan40/events{/privacy}","received_events_url":"https://api.github.com/users/Shravan40/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-06T11:22:40Z","updated_at":"2016-12-06T11:22:40Z","closed_at":null,"body":"Json data send to post method given below is \r\n{\r\n\"user_id\":1,\r\n\"name\": [\"Alice\",\"Bob\",\"Peter\"]\r\n}\r\n\r\n```\r\nCROW_ROUTE(app,\"/saveName\")\r\n               .methods(\"POST\"_method)\r\n    ([](const crow::request& req){\r\n        string input_error;\r\n        auto x= Json::parse(req.body, input_error);\r\n        if(x == nullptr)\r\n            crow::response(400);\r\n        auto userId = x[\"user_id\"].int_value();\r\n        std::vector<string> inp;\r\n        for(auto& j: x[\"name\"].array_items()) {\r\n            inp.push_back(j.dump());\r\n        }\r\n```\r\n\r\nAnd it's parsing name in `vector` inp as `\"Alice\"`,`\"Bob\"` and `\"Peter\"` but i want to parse it as `Alice`,`Bob` and `Peter`. "}}
{"actor":{"display_login":"Shravan40"}}