{"action":"created","issue":{"url":"https://api.github.com/repos/hoaproject/Ruler/issues/63","labels_url":"https://api.github.com/repos/hoaproject/Ruler/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/hoaproject/Ruler/issues/63/comments","events_url":"https://api.github.com/repos/hoaproject/Ruler/issues/63/events","html_url":"https://github.com/hoaproject/Ruler/issues/63","id":92373615,"number":63,"title":"avoid use of serialize","user":{"login":"Grummfy","id":668804,"avatar_url":"https://avatars.githubusercontent.com/u/668804?v=3","gravatar_id":"","url":"https://api.github.com/users/Grummfy","html_url":"https://github.com/Grummfy","followers_url":"https://api.github.com/users/Grummfy/followers","following_url":"https://api.github.com/users/Grummfy/following{/other_user}","gists_url":"https://api.github.com/users/Grummfy/gists{/gist_id}","starred_url":"https://api.github.com/users/Grummfy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Grummfy/subscriptions","organizations_url":"https://api.github.com/users/Grummfy/orgs","repos_url":"https://api.github.com/users/Grummfy/repos","events_url":"https://api.github.com/users/Grummfy/events{/privacy}","received_events_url":"https://api.github.com/users/Grummfy/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hoaproject/Ruler/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/hoaproject/Ruler/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"stephpy","id":232744,"avatar_url":"https://avatars.githubusercontent.com/u/232744?v=3","gravatar_id":"","url":"https://api.github.com/users/stephpy","html_url":"https://github.com/stephpy","followers_url":"https://api.github.com/users/stephpy/followers","following_url":"https://api.github.com/users/stephpy/following{/other_user}","gists_url":"https://api.github.com/users/stephpy/gists{/gist_id}","starred_url":"https://api.github.com/users/stephpy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephpy/subscriptions","organizations_url":"https://api.github.com/users/stephpy/orgs","repos_url":"https://api.github.com/users/stephpy/repos","events_url":"https://api.github.com/users/stephpy/events{/privacy}","received_events_url":"https://api.github.com/users/stephpy/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-07-01T12:49:53Z","updated_at":"2015-07-02T13:38:38Z","closed_at":null,"body":"Hello,\r\nin the documentation of hoa ruler we find this \r\n\r\n    // We serialize and save the object model.\r\n    $database->save($ruleId, serialize($model));\r\n\r\nBut we should avoid serialize for long storage. Why, because serialize lead on php model, and this model can evolve with PHP imself. So a value in the database can become invalid because of the php version have change. But there is also another issue. If you have an evolution of hoa\\ruler, it's possible that the serialisation of the object differ from one version to another.\r\n\r\nWe can imagine use json or other serialisation model."},"comment":{"url":"https://api.github.com/repos/hoaproject/Ruler/issues/comments/118036475","html_url":"https://github.com/hoaproject/Ruler/issues/63#issuecomment-118036475","issue_url":"https://api.github.com/repos/hoaproject/Ruler/issues/63","id":118036475,"user":{"login":"Hywan","id":946104,"avatar_url":"https://avatars.githubusercontent.com/u/946104?v=3","gravatar_id":"","url":"https://api.github.com/users/Hywan","html_url":"https://github.com/Hywan","followers_url":"https://api.github.com/users/Hywan/followers","following_url":"https://api.github.com/users/Hywan/following{/other_user}","gists_url":"https://api.github.com/users/Hywan/gists{/gist_id}","starred_url":"https://api.github.com/users/Hywan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hywan/subscriptions","organizations_url":"https://api.github.com/users/Hywan/orgs","repos_url":"https://api.github.com/users/Hywan/repos","events_url":"https://api.github.com/users/Hywan/events{/privacy}","received_events_url":"https://api.github.com/users/Hywan/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T13:38:38Z","updated_at":"2015-07-02T13:38:38Z","body":"Instead of serializing to PHP, we could implement the `JsonSerializable` interface and therefore serialize to JSON?"}}