{"action":"opened","issue":{"url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3072","labels_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3072/labels{/name}","comments_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3072/comments","events_url":"https://api.github.com/repos/Starcounter/Starcounter/issues/3072/events","html_url":"https://github.com/Starcounter/Starcounter/issues/3072","id":117122383,"number":3072,"title":"Cannot serialize to null","user":{"login":"tomalec","id":17435,"avatar_url":"https://avatars.githubusercontent.com/u/17435?v=3","gravatar_id":"","url":"https://api.github.com/users/tomalec","html_url":"https://github.com/tomalec","followers_url":"https://api.github.com/users/tomalec/followers","following_url":"https://api.github.com/users/tomalec/following{/other_user}","gists_url":"https://api.github.com/users/tomalec/gists{/gist_id}","starred_url":"https://api.github.com/users/tomalec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomalec/subscriptions","organizations_url":"https://api.github.com/users/tomalec/orgs","repos_url":"https://api.github.com/users/tomalec/repos","events_url":"https://api.github.com/users/tomalec/events{/privacy}","received_events_url":"https://api.github.com/users/tomalec/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T13:24:40Z","updated_at":"2015-11-16T13:24:40Z","closed_at":null,"body":"I would like to serialize `null` to my JSON, for example in Launcher's launchpad layout [Launcher/Api/LauncherHelper.cs#L69](https://github.com/StarcounterSamples/Launcher/blob/536ac0bc2ef463b6c1b00ebd794383bb9327be06/src/Launcher/Api/LauncherHelper.cs#L69)\r\nHowever, it's being serialized to `{}`.\r\n\r\nI tried changing JSON-by-example to `null` (at [LauncherPage.json#L34](https://github.com/StarcounterSamples/Launcher/blob/536ac0bc2ef463b6c1b00ebd794383bb9327be06/src/Launcher/ViewModels/LauncherPage.json#L34)) - results in build error,\r\nand even sending `new Json(\"{\\\"foo\\\": null}\");` - results in run-time error.\r\n\r\n\r\nAs `null` is a valid JSON value, we should somehow support returning it.\r\n\r\nIt may be related to #269 (PuppetJS no longer uses null triggers),\r\nand it make fix for StarcounterSamples/Launcher#162 a bit ugly."}}