{"action":"created","issue":{"url":"https://api.github.com/repos/astoilkov/jsblocks/issues/86","labels_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/86/comments","events_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/86/events","html_url":"https://github.com/astoilkov/jsblocks/issues/86","id":104941370,"number":86,"title":"observable cannot survive JSON.stringify","user":{"login":"lilchow","id":8870452,"avatar_url":"https://avatars.githubusercontent.com/u/8870452?v=3","gravatar_id":"","url":"https://api.github.com/users/lilchow","html_url":"https://github.com/lilchow","followers_url":"https://api.github.com/users/lilchow/followers","following_url":"https://api.github.com/users/lilchow/following{/other_user}","gists_url":"https://api.github.com/users/lilchow/gists{/gist_id}","starred_url":"https://api.github.com/users/lilchow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lilchow/subscriptions","organizations_url":"https://api.github.com/users/lilchow/orgs","repos_url":"https://api.github.com/users/lilchow/repos","events_url":"https://api.github.com/users/lilchow/events{/privacy}","received_events_url":"https://api.github.com/users/lilchow/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/astoilkov/jsblocks/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-04T18:16:31Z","updated_at":"2015-09-25T13:29:01Z","closed_at":null,"body":"Let's say I created this simple object:\r\n\r\nvar a={};\r\na.obs=blocks.observable(2);\r\n\r\nconsole.log(JSON.stringify(a)) would show only an empty object, i.e. \"{}\";"},"comment":{"url":"https://api.github.com/repos/astoilkov/jsblocks/issues/comments/143223052","html_url":"https://github.com/astoilkov/jsblocks/issues/86#issuecomment-143223052","issue_url":"https://api.github.com/repos/astoilkov/jsblocks/issues/86","id":143223052,"user":{"login":"Kanaye","id":5108989,"avatar_url":"https://avatars.githubusercontent.com/u/5108989?v=3","gravatar_id":"","url":"https://api.github.com/users/Kanaye","html_url":"https://github.com/Kanaye","followers_url":"https://api.github.com/users/Kanaye/followers","following_url":"https://api.github.com/users/Kanaye/following{/other_user}","gists_url":"https://api.github.com/users/Kanaye/gists{/gist_id}","starred_url":"https://api.github.com/users/Kanaye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kanaye/subscriptions","organizations_url":"https://api.github.com/users/Kanaye/orgs","repos_url":"https://api.github.com/users/Kanaye/repos","events_url":"https://api.github.com/users/Kanaye/events{/privacy}","received_events_url":"https://api.github.com/users/Kanaye/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T13:29:01Z","updated_at":"2015-09-25T13:29:01Z","body":"A `blocks.stringify` sounds good to me.\r\nMaybe it should stay compatible to `JSON.stringify` and call the replacer function after replacing the observables."}}