{"action":"created","issue":{"url":"https://api.github.com/repos/nlohmann/json/issues/274","repository_url":"https://api.github.com/repos/nlohmann/json","labels_url":"https://api.github.com/repos/nlohmann/json/issues/274/labels{/name}","comments_url":"https://api.github.com/repos/nlohmann/json/issues/274/comments","events_url":"https://api.github.com/repos/nlohmann/json/issues/274/events","html_url":"https://github.com/nlohmann/json/issues/274","id":162671818,"number":274,"title":"Using QString as string type","user":{"login":"mlutken","id":16965348,"avatar_url":"https://avatars.githubusercontent.com/u/16965348?v=3","gravatar_id":"","url":"https://api.github.com/users/mlutken","html_url":"https://github.com/mlutken","followers_url":"https://api.github.com/users/mlutken/followers","following_url":"https://api.github.com/users/mlutken/following{/other_user}","gists_url":"https://api.github.com/users/mlutken/gists{/gist_id}","starred_url":"https://api.github.com/users/mlutken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlutken/subscriptions","organizations_url":"https://api.github.com/users/mlutken/orgs","repos_url":"https://api.github.com/users/mlutken/repos","events_url":"https://api.github.com/users/mlutken/events{/privacy}","received_events_url":"https://api.github.com/users/mlutken/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nlohmann/json/labels/enhancement","name":"enhancement","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2016-06-28T12:17:34Z","updated_at":"2016-07-22T12:42:04Z","closed_at":null,"body":"Hi\r\n\r\nIt would be very nice if one could do:\r\nusing json = nlohmann::basic_json < std::map, std::vector, QString >;\r\n\r\nAnd have everything work.\r\nRight now it seems stringstream are used to stringify etc... So it does not quite compile.\r\n\r\nOtherwise I am pretty impressed by the way this library works. Having used hson mostly from PHP, where it's very simple, this is clearly the way to go in C++ :)\r\n\r\n-Martin"},"comment":{"url":"https://api.github.com/repos/nlohmann/json/issues/comments/234533414","html_url":"https://github.com/nlohmann/json/issues/274#issuecomment-234533414","issue_url":"https://api.github.com/repos/nlohmann/json/issues/274","id":234533414,"user":{"login":"nlohmann","id":159488,"avatar_url":"https://avatars.githubusercontent.com/u/159488?v=3","gravatar_id":"","url":"https://api.github.com/users/nlohmann","html_url":"https://github.com/nlohmann","followers_url":"https://api.github.com/users/nlohmann/followers","following_url":"https://api.github.com/users/nlohmann/following{/other_user}","gists_url":"https://api.github.com/users/nlohmann/gists{/gist_id}","starred_url":"https://api.github.com/users/nlohmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nlohmann/subscriptions","organizations_url":"https://api.github.com/users/nlohmann/orgs","repos_url":"https://api.github.com/users/nlohmann/repos","events_url":"https://api.github.com/users/nlohmann/events{/privacy}","received_events_url":"https://api.github.com/users/nlohmann/received_events","type":"User","site_admin":false},"created_at":"2016-07-22T12:42:04Z","updated_at":"2016-07-22T12:42:04Z","body":"It seems as if `typename string_t::traits_type` is not available if `string_t` is of type `QString`. I do no know whether it is possible to create suitable string stream for `QStrings`.\r\n\r\nI thought about changing the `dump` functions return value to `std::string`, but this would also not help, because there is no implicit conversion from `QString` to `std::string`. I am currently clueless whether this combination can work."}}
{"actor":{"display_login":"nlohmann"}}