{"action":"created","issue":{"url":"https://api.github.com/repos/socketio/socket.io-client-cpp/issues/27","labels_url":"https://api.github.com/repos/socketio/socket.io-client-cpp/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/socketio/socket.io-client-cpp/issues/27/comments","events_url":"https://api.github.com/repos/socketio/socket.io-client-cpp/issues/27/events","html_url":"https://github.com/socketio/socket.io-client-cpp/issues/27","id":89861178,"number":27,"title":"How to emit a JSON object?","user":{"login":"haitaoxin","id":1574352,"avatar_url":"https://avatars.githubusercontent.com/u/1574352?v=3","gravatar_id":"","url":"https://api.github.com/users/haitaoxin","html_url":"https://github.com/haitaoxin","followers_url":"https://api.github.com/users/haitaoxin/followers","following_url":"https://api.github.com/users/haitaoxin/following{/other_user}","gists_url":"https://api.github.com/users/haitaoxin/gists{/gist_id}","starred_url":"https://api.github.com/users/haitaoxin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haitaoxin/subscriptions","organizations_url":"https://api.github.com/users/haitaoxin/orgs","repos_url":"https://api.github.com/users/haitaoxin/repos","events_url":"https://api.github.com/users/haitaoxin/events{/privacy}","received_events_url":"https://api.github.com/users/haitaoxin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-21T04:10:18Z","updated_at":"2015-06-28T15:02:47Z","closed_at":null,"body":"Hello,\r\nI noticed that in \\test\\sio_test.cpp, nlohmann mentioned that JSON will not compile on Windows:\r\n#ifndef _WIN32\r\n#include \"json.hpp\" //nlohmann::json cannot build in MSVC\r\n#endif\r\n\r\nDoes it mean that I cann't emit a JSON object from Win32 client? Here is my object\r\n{\r\n    name: 'Joe',\r\n    age: 25,\r\n    car: {\r\n        photo: <Buffer of an image file>,\r\n        year: 2005\r\n    }\r\n}\r\nIf I can, could you give a simple example?\r\n\r\nThanks a lot!"},"comment":{"url":"https://api.github.com/repos/socketio/socket.io-client-cpp/issues/comments/116288962","html_url":"https://github.com/socketio/socket.io-client-cpp/issues/27#issuecomment-116288962","issue_url":"https://api.github.com/repos/socketio/socket.io-client-cpp/issues/27","id":116288962,"user":{"login":"melode11","id":3647507,"avatar_url":"https://avatars.githubusercontent.com/u/3647507?v=3","gravatar_id":"","url":"https://api.github.com/users/melode11","html_url":"https://github.com/melode11","followers_url":"https://api.github.com/users/melode11/followers","following_url":"https://api.github.com/users/melode11/following{/other_user}","gists_url":"https://api.github.com/users/melode11/gists{/gist_id}","starred_url":"https://api.github.com/users/melode11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/melode11/subscriptions","organizations_url":"https://api.github.com/users/melode11/orgs","repos_url":"https://api.github.com/users/melode11/repos","events_url":"https://api.github.com/users/melode11/events{/privacy}","received_events_url":"https://api.github.com/users/melode11/received_events","type":"User","site_admin":false},"created_at":"2015-06-28T15:02:47Z","updated_at":"2015-06-28T15:02:47Z","body":"`get_map` gives the internal `map` reference, you can set any string - message key-value pair into it.\r\nor just \r\n```\r\nobject_map_ptr->get_map() = your_map;\r\n```"}}