{"action":"opened","issue":{"url":"https://api.github.com/repos/jekyll/jekyll-help/issues/257","labels_url":"https://api.github.com/repos/jekyll/jekyll-help/issues/257/labels{/name}","comments_url":"https://api.github.com/repos/jekyll/jekyll-help/issues/257/comments","events_url":"https://api.github.com/repos/jekyll/jekyll-help/issues/257/events","html_url":"https://github.com/jekyll/jekyll-help/issues/257","id":55806543,"number":257,"title":"Liquid assign tag and filters","user":{"login":"mdotasia","id":1482402,"avatar_url":"https://avatars.githubusercontent.com/u/1482402?v=3","gravatar_id":"","url":"https://api.github.com/users/mdotasia","html_url":"https://github.com/mdotasia","followers_url":"https://api.github.com/users/mdotasia/followers","following_url":"https://api.github.com/users/mdotasia/following{/other_user}","gists_url":"https://api.github.com/users/mdotasia/gists{/gist_id}","starred_url":"https://api.github.com/users/mdotasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdotasia/subscriptions","organizations_url":"https://api.github.com/users/mdotasia/orgs","repos_url":"https://api.github.com/users/mdotasia/repos","events_url":"https://api.github.com/users/mdotasia/events{/privacy}","received_events_url":"https://api.github.com/users/mdotasia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-01-28T19:54:46Z","updated_at":"2015-01-28T19:54:46Z","closed_at":null,"body":"I have a collection **classification**. In a template I want to read one item from the collection based on a front matter `id` value.\r\n\r\nI thought this is straightforward. But then I noticed (using the Octopress debugger) that after executing\r\n\r\n```\r\n{% assign item = site.classification | where:\"id\",\"xyz\" %}\r\n{% debug %}\r\n```\r\n\r\n**item** contains a flattened String representation of the collection item and not the collection item itself (as I would have expected). I noticed the same for the **group_by** filter. It seems that the assign tag in conjunction with these filter flattens the result to a String. It does not seem to be the filter itself. Jekyll's where filter seems fine when I look at the source code.\r\n\r\nWhen I do\r\n\r\n```\r\n{% assign item = site.classification %}\r\n{% debug %}\r\n```\r\n\r\n**without filter**, the debugger shows me that **item** contains the actual collection as it should. \r\n\r\nWhat is the expected behavior when applying the filters mentioned here: http://jekyllrb.com/docs/templates/?"}}