{"action":"opened","issue":{"url":"https://api.github.com/repos/amorfati0310/todoPractice/issues/14","repository_url":"https://api.github.com/repos/amorfati0310/todoPractice","labels_url":"https://api.github.com/repos/amorfati0310/todoPractice/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/amorfati0310/todoPractice/issues/14/comments","events_url":"https://api.github.com/repos/amorfati0310/todoPractice/issues/14/events","html_url":"https://github.com/amorfati0310/todoPractice/issues/14","id":361652101,"node_id":"MDU6SXNzdWUzNjE2NTIxMDE=","number":14,"title":"Model -> localStorage Json.parse()","user":{"login":"amorfati0310","id":25189066,"node_id":"MDQ6VXNlcjI1MTg5MDY2","avatar_url":"https://avatars1.githubusercontent.com/u/25189066?v=4","gravatar_id":"","url":"https://api.github.com/users/amorfati0310","html_url":"https://github.com/amorfati0310","followers_url":"https://api.github.com/users/amorfati0310/followers","following_url":"https://api.github.com/users/amorfati0310/following{/other_user}","gists_url":"https://api.github.com/users/amorfati0310/gists{/gist_id}","starred_url":"https://api.github.com/users/amorfati0310/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amorfati0310/subscriptions","organizations_url":"https://api.github.com/users/amorfati0310/orgs","repos_url":"https://api.github.com/users/amorfati0310/repos","events_url":"https://api.github.com/users/amorfati0310/events{/privacy}","received_events_url":"https://api.github.com/users/amorfati0310/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-19T09:13:03Z","updated_at":"2018-09-19T09:13:03Z","closed_at":null,"author_association":"OWNER","body":"Model 로 생성자를 톡해서 만들어진 객체 \r\ntodoModel 객체가 localStorage로 저장되었다가 다시 나올 때는 todoModel\r\n\r\n```js\r\nvar a = [...$r.props.todos]\r\nundefined\r\na\r\n(4) [TodoModel, TodoModel, TodoModel, TodoModel]\r\n\r\n그 당시에는 parse를 하고 있는데 \r\nvar b = JSON.parse(localStorage['LOCAL_TODO'])\r\nundefined\r\nb 기존 생성자와 연결된 prototype을 기억하고 있지 못한다. \r\n(4) [{…}, {…}, {…}, {…}]\r\n\r\n```\r\n\r\nhttps://stackoverflow.com/questions/8779249/how-to-stringify-inherited-objects-to-json\r\nhttps://stackoverflow.com/questions/12369543/why-is-json-stringify-not-serializing-prototype-values"}}
{"actor":{"display_login":"amorfati0310"}}