{"action":"created","issue":{"url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/62","labels_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/62/comments","events_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/62/events","html_url":"https://github.com/bblanchon/ArduinoJson/issues/62","id":66829325,"number":62,"title":"JSON generator casts bool to int","user":{"login":"fmntf","id":287717,"avatar_url":"https://avatars.githubusercontent.com/u/287717?v=3","gravatar_id":"","url":"https://api.github.com/users/fmntf","html_url":"https://github.com/fmntf","followers_url":"https://api.github.com/users/fmntf/followers","following_url":"https://api.github.com/users/fmntf/following{/other_user}","gists_url":"https://api.github.com/users/fmntf/gists{/gist_id}","starred_url":"https://api.github.com/users/fmntf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fmntf/subscriptions","organizations_url":"https://api.github.com/users/fmntf/orgs","repos_url":"https://api.github.com/users/fmntf/repos","events_url":"https://api.github.com/users/fmntf/events{/privacy}","received_events_url":"https://api.github.com/users/fmntf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-07T08:57:25Z","updated_at":"2015-04-07T09:49:16Z","closed_at":"2015-04-07T09:31:07Z","body":"Hello,\r\nI'm using ArduinoJson 4.2, parsing works good, but generation has something weird:\r\n\r\n      StaticJsonBuffer<200> responseJsonBuffer;\r\n      JsonObject& response = responseJsonBuffer.createObject();\r\n      response[\"success\"] = true;\r\n      response[\"value\"] = 123;\r\n\r\nThe generated JSON is:\r\n\r\n    {\"success\":1,\"value\":123}\r\n\r\nWhy is the boolean casted to int?\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/comments/90490179","html_url":"https://github.com/bblanchon/ArduinoJson/issues/62#issuecomment-90490179","issue_url":"https://api.github.com/repos/bblanchon/ArduinoJson/issues/62","id":90490179,"user":{"login":"bblanchon","id":5462433,"avatar_url":"https://avatars.githubusercontent.com/u/5462433?v=3","gravatar_id":"","url":"https://api.github.com/users/bblanchon","html_url":"https://github.com/bblanchon","followers_url":"https://api.github.com/users/bblanchon/followers","following_url":"https://api.github.com/users/bblanchon/following{/other_user}","gists_url":"https://api.github.com/users/bblanchon/gists{/gist_id}","starred_url":"https://api.github.com/users/bblanchon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bblanchon/subscriptions","organizations_url":"https://api.github.com/users/bblanchon/orgs","repos_url":"https://api.github.com/users/bblanchon/repos","events_url":"https://api.github.com/users/bblanchon/events{/privacy}","received_events_url":"https://api.github.com/users/bblanchon/received_events","type":"User","site_admin":false},"created_at":"2015-04-07T09:49:15Z","updated_at":"2015-04-07T09:49:15Z","body":"Either\r\n\r\n     #undef true\r\n     #undef false\r\n\r\nor\r\n\r\n    response[\"success\"] = (bool)true;\r\n\r\nor\r\n\r\n    response.add<bool>(\"success\", true);\r\n\r\n(caution, the last one may not work with ArduinoJson 5.0)"}}