{"action":"closed","issue":{"url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/78","labels_url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/78/comments","events_url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/issues/78/events","html_url":"https://github.com/jupyter-incubator/declarativewidgets/issues/78","id":114679653,"number":78,"title":"Scala support does not support serializing booleans","user":{"login":"lbustelo","id":2474841,"avatar_url":"https://avatars.githubusercontent.com/u/2474841?v=3","gravatar_id":"","url":"https://api.github.com/users/lbustelo","html_url":"https://github.com/lbustelo","followers_url":"https://api.github.com/users/lbustelo/followers","following_url":"https://api.github.com/users/lbustelo/following{/other_user}","gists_url":"https://api.github.com/users/lbustelo/gists{/gist_id}","starred_url":"https://api.github.com/users/lbustelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lbustelo/subscriptions","organizations_url":"https://api.github.com/users/lbustelo/orgs","repos_url":"https://api.github.com/users/lbustelo/repos","events_url":"https://api.github.com/users/lbustelo/events{/privacy}","received_events_url":"https://api.github.com/users/lbustelo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/jupyter-incubator/declarativewidgets/labels/in%20progress","name":"in progress","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-02T20:42:15Z","updated_at":"2015-11-03T16:45:31Z","closed_at":"2015-11-03T16:45:31Z","body":"@vinomaster hit this problem on his demo notebook. If we do something like\r\n```\r\nchannel().set(\"aVar\", false)\r\n```\r\nor\r\n```\r\nchannel().set(\"aVar\", true)\r\n```\r\n\r\nThey are getting sent to the browser as strings. We cannot then use them as expected in a `<template is='dom-if'>`.\r\n\r\nThe problem is https://github.com/jupyter-incubator/declarativewidgets/blob/master/kernel-scala/src/main/scala/urth/widgets/util/SerializationSupport.scala#L27 is missing a case of Boolean and converting to JsBoolean.\r\n\r\n/cc @wellecks "}}