{"action":"opened","issue":{"url":"https://api.github.com/repos/GoyaPtyLtd/BaseElements-Plugin/issues/99","labels_url":"https://api.github.com/repos/GoyaPtyLtd/BaseElements-Plugin/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/GoyaPtyLtd/BaseElements-Plugin/issues/99/comments","events_url":"https://api.github.com/repos/GoyaPtyLtd/BaseElements-Plugin/issues/99/events","html_url":"https://github.com/GoyaPtyLtd/BaseElements-Plugin/issues/99","id":85619567,"number":99,"title":"BE_JSON_ENCODE - can't get Boolean out of this","user":{"login":"stevenadeau","id":9614427,"avatar_url":"https://avatars.githubusercontent.com/u/9614427?v=3","gravatar_id":"","url":"https://api.github.com/users/stevenadeau","html_url":"https://github.com/stevenadeau","followers_url":"https://api.github.com/users/stevenadeau/followers","following_url":"https://api.github.com/users/stevenadeau/following{/other_user}","gists_url":"https://api.github.com/users/stevenadeau/gists{/gist_id}","starred_url":"https://api.github.com/users/stevenadeau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stevenadeau/subscriptions","organizations_url":"https://api.github.com/users/stevenadeau/orgs","repos_url":"https://api.github.com/users/stevenadeau/repos","events_url":"https://api.github.com/users/stevenadeau/events{/privacy}","received_events_url":"https://api.github.com/users/stevenadeau/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-05T19:53:35Z","updated_at":"2015-06-05T19:53:35Z","closed_at":null,"body":"I've tried many many things, but I can't get a true Boolean out of this function.\r\n\r\nI'm trying to get something that'll fit  { \"test\":true }\r\n\r\nHere are some examples of what I've tried:\r\n\r\nBE_JSON_Encode ( \"test\" ; \"true\" ; \"Boolean\" )\r\nBE_JSON_Encode ( \"test\" ; true ; \"Boolean\" )\r\nBE_JSON_Encode ( \"test\" ; true )\r\nBE_JSON_Encode ( \"test\" ; GetAsBoolean(1) ; \"Boolean\" )\r\nBE_JSON_Encode ( \"test\" ; GetAsBoolean(1) )\r\nBE_JSON_Encode ( \"test\" ; GetAsBoolean(true) )\r\n\r\nI checked in the file \"BEJSON.cpp\", and at line 106 it gets the native type and there's the if/else if for each types or so.\r\n\r\nI managed to bypass this by using BE_JSON_ENCODE ( \"test\" ) & \"true\"\r\n\r\nAm I doing something wrong or is the Bool type never caught by \"value.GetNativeType()\" ?\r\n\r\n\r\nAlso, the documentation says that we can send the type as the 3rd parameter. When I checked the code, this doesn't seem to be true appart from the \"null\" type."}}