{"action":"created","issue":{"url":"https://api.github.com/repos/attendease/jekyll-attendease/issues/76","repository_url":"https://api.github.com/repos/attendease/jekyll-attendease","labels_url":"https://api.github.com/repos/attendease/jekyll-attendease/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/attendease/jekyll-attendease/issues/76/comments","events_url":"https://api.github.com/repos/attendease/jekyll-attendease/issues/76/events","html_url":"https://github.com/attendease/jekyll-attendease/pull/76","id":134424341,"number":76,"title":"Add safe_json filter and meta=true request","user":{"login":"AntoineInsa","id":603985,"avatar_url":"https://avatars.githubusercontent.com/u/603985?v=3","gravatar_id":"","url":"https://api.github.com/users/AntoineInsa","html_url":"https://github.com/AntoineInsa","followers_url":"https://api.github.com/users/AntoineInsa/followers","following_url":"https://api.github.com/users/AntoineInsa/following{/other_user}","gists_url":"https://api.github.com/users/AntoineInsa/gists{/gist_id}","starred_url":"https://api.github.com/users/AntoineInsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntoineInsa/subscriptions","organizations_url":"https://api.github.com/users/AntoineInsa/orgs","repos_url":"https://api.github.com/users/AntoineInsa/repos","events_url":"https://api.github.com/users/AntoineInsa/events{/privacy}","received_events_url":"https://api.github.com/users/AntoineInsa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/attendease/jekyll-attendease/labels/[Status]%20In%20Progress","name":"[Status] In Progress","color":"ededed"}],"state":"open","locked":false,"assignee":{"login":"AntoineInsa","id":603985,"avatar_url":"https://avatars.githubusercontent.com/u/603985?v=3","gravatar_id":"","url":"https://api.github.com/users/AntoineInsa","html_url":"https://github.com/AntoineInsa","followers_url":"https://api.github.com/users/AntoineInsa/followers","following_url":"https://api.github.com/users/AntoineInsa/following{/other_user}","gists_url":"https://api.github.com/users/AntoineInsa/gists{/gist_id}","starred_url":"https://api.github.com/users/AntoineInsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntoineInsa/subscriptions","organizations_url":"https://api.github.com/users/AntoineInsa/orgs","repos_url":"https://api.github.com/users/AntoineInsa/repos","events_url":"https://api.github.com/users/AntoineInsa/events{/privacy}","received_events_url":"https://api.github.com/users/AntoineInsa/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-02-17T22:48:16Z","updated_at":"2016-02-18T00:28:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/attendease/jekyll-attendease/pulls/76","html_url":"https://github.com/attendease/jekyll-attendease/pull/76","diff_url":"https://github.com/attendease/jekyll-attendease/pull/76.diff","patch_url":"https://github.com/attendease/jekyll-attendease/pull/76.patch"},"body":"Connect #75\r\n\r\nThe `safe_json` filter allows to safely output json strings in javascript code to be parsed later, without any errors. Non ascii-characters, as well as line jump characters are removed, inside/outside quotes are escaped.\r\n\r\nUsage example\r\n```javascript\r\n<script type=\"text/javascript\">\r\n  Attendease.apiRoot    = '{{ site.attendease.api_host }}';\r\n  // Load Attendease objects\r\n  Attendease.presenters = JSON.parse(\"{{ site.attendease.presenters | safe_json }}\");\r\n  Attendease.venues     = JSON.parse(\"{{ site.attendease.venues     | safe_json }}\");\r\n  Attendease.rooms      = JSON.parse(\"{{ site.attendease.rooms      | safe_json }}\");\r\n  Attendease.filters    = JSON.parse(\"{{ site.attendease.filters    | safe_json }}\");\r\n  Attendease.sessions   = JSON.parse(\"{{ site.attendease.sessions   | safe_json }}\");\r\n  Attendease.instances = Attendease.sessions.map(function(session){\r\n    return session.instances.map(function(instance){\r\n      instance.session = session;\r\n      return instance;\r\n    })\r\n  }).reduce(function(a, b) {\r\n    return a.concat(b);\r\n  }, []);\r\n</script>\r\n```"},"comment":{"url":"https://api.github.com/repos/attendease/jekyll-attendease/issues/comments/185476768","html_url":"https://github.com/attendease/jekyll-attendease/pull/76#issuecomment-185476768","issue_url":"https://api.github.com/repos/attendease/jekyll-attendease/issues/76","id":185476768,"user":{"login":"eddanger","id":13560,"avatar_url":"https://avatars.githubusercontent.com/u/13560?v=3","gravatar_id":"","url":"https://api.github.com/users/eddanger","html_url":"https://github.com/eddanger","followers_url":"https://api.github.com/users/eddanger/followers","following_url":"https://api.github.com/users/eddanger/following{/other_user}","gists_url":"https://api.github.com/users/eddanger/gists{/gist_id}","starred_url":"https://api.github.com/users/eddanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddanger/subscriptions","organizations_url":"https://api.github.com/users/eddanger/orgs","repos_url":"https://api.github.com/users/eddanger/repos","events_url":"https://api.github.com/users/eddanger/events{/privacy}","received_events_url":"https://api.github.com/users/eddanger/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T00:28:53Z","updated_at":"2016-02-18T00:28:53Z","body":"When I use the liquid filter on a data structure everything works as expected:\r\n\r\n`{{ site.attendease.sessions | jsonify }}`\r\n\r\nWhat are you seeing?\r\n"}}