{"action":"created","issue":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/3432","repository_url":"https://api.github.com/repos/ampproject/amphtml","labels_url":"https://api.github.com/repos/ampproject/amphtml/issues/3432/labels{/name}","comments_url":"https://api.github.com/repos/ampproject/amphtml/issues/3432/comments","events_url":"https://api.github.com/repos/ampproject/amphtml/issues/3432/events","html_url":"https://github.com/ampproject/amphtml/issues/3432","id":158350129,"number":3432,"title":"amp-list and flexibility when targeting a JSON object","user":{"login":"jaygray0919","id":11330577,"avatar_url":"https://avatars.githubusercontent.com/u/11330577?v=3","gravatar_id":"","url":"https://api.github.com/users/jaygray0919","html_url":"https://github.com/jaygray0919","followers_url":"https://api.github.com/users/jaygray0919/followers","following_url":"https://api.github.com/users/jaygray0919/following{/other_user}","gists_url":"https://api.github.com/users/jaygray0919/gists{/gist_id}","starred_url":"https://api.github.com/users/jaygray0919/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaygray0919/subscriptions","organizations_url":"https://api.github.com/users/jaygray0919/orgs","repos_url":"https://api.github.com/users/jaygray0919/repos","events_url":"https://api.github.com/users/jaygray0919/events{/privacy}","received_events_url":"https://api.github.com/users/jaygray0919/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Related%20to:%20Content","name":"Related to: Content","color":"d4c5f9"},{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Feature","name":"Type: Feature","color":"bfe5bf"},{"url":"https://api.github.com/repos/ampproject/amphtml/labels/Type:%20Request","name":"Type: Request","color":"207de5"}],"state":"closed","locked":false,"assignee":{"login":"dvoytenko","id":726049,"avatar_url":"https://avatars.githubusercontent.com/u/726049?v=3","gravatar_id":"","url":"https://api.github.com/users/dvoytenko","html_url":"https://github.com/dvoytenko","followers_url":"https://api.github.com/users/dvoytenko/followers","following_url":"https://api.github.com/users/dvoytenko/following{/other_user}","gists_url":"https://api.github.com/users/dvoytenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoytenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoytenko/subscriptions","organizations_url":"https://api.github.com/users/dvoytenko/orgs","repos_url":"https://api.github.com/users/dvoytenko/repos","events_url":"https://api.github.com/users/dvoytenko/events{/privacy}","received_events_url":"https://api.github.com/users/dvoytenko/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/ampproject/amphtml/milestones/4","html_url":"https://github.com/ampproject/amphtml/milestones/Backlog","labels_url":"https://api.github.com/repos/ampproject/amphtml/milestones/4/labels","id":1537240,"number":4,"title":"Backlog","description":"This milestone tracks issues that aren't currently prioritized for implementation.","creator":{"login":"rudygalfi","id":3888212,"avatar_url":"https://avatars.githubusercontent.com/u/3888212?v=3","gravatar_id":"","url":"https://api.github.com/users/rudygalfi","html_url":"https://github.com/rudygalfi","followers_url":"https://api.github.com/users/rudygalfi/followers","following_url":"https://api.github.com/users/rudygalfi/following{/other_user}","gists_url":"https://api.github.com/users/rudygalfi/gists{/gist_id}","starred_url":"https://api.github.com/users/rudygalfi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rudygalfi/subscriptions","organizations_url":"https://api.github.com/users/rudygalfi/orgs","repos_url":"https://api.github.com/users/rudygalfi/repos","events_url":"https://api.github.com/users/rudygalfi/events{/privacy}","received_events_url":"https://api.github.com/users/rudygalfi/received_events","type":"User","site_admin":false},"open_issues":241,"closed_issues":45,"state":"open","created_at":"2016-01-22T23:51:53Z","updated_at":"2016-06-20T20:03:21Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-06-03T11:49:14Z","updated_at":"2016-06-20T20:03:21Z","closed_at":"2016-06-20T20:03:21Z","body":"amp-list and amp-mustache expects a JSON object containing an array property \"items\".\r\nThe official AMP example is:\r\n\r\n```\r\n{\r\n  \"items\": [\r\n    {\r\n      \"title\": \"amp-carousel\",\r\n      \"url\": \"https://ampbyexample.com/components/amp-carousel\"\r\n    },\r\n    ...\r\n  ]\r\n}\r\n```\r\nIs it possible with AMP to navigate a JSON object by specifying an alternative JSON key for \"items\"?\r\nFor example, in the JSON object below, specify that \"Properties\" is a substitute for \"items\"?\r\n\r\n```\r\n{\r\n  \"PropertyTable\": {\r\n    \"Properties\": [\r\n      {\r\n        \"CID\": 2244,\r\n        \"MolecularFormula\": \"C9H8O4\"\r\n      }\r\n    ]\r\n  }\r\n}\r\n```\r\n\r\nA mustache template would look like this:\r\n```\r\n  <template type=\"amp-mustache\" id=\"amp-template-id\">\r\n    <li>Identifier: {{CID}}</li>\r\n    <li>Chemical formula: {{MolecularFormula}}</li>\r\n  </template>\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/ampproject/amphtml/issues/comments/227252966","html_url":"https://github.com/ampproject/amphtml/issues/3432#issuecomment-227252966","issue_url":"https://api.github.com/repos/ampproject/amphtml/issues/3432","id":227252966,"user":{"login":"dvoytenko","id":726049,"avatar_url":"https://avatars.githubusercontent.com/u/726049?v=3","gravatar_id":"","url":"https://api.github.com/users/dvoytenko","html_url":"https://github.com/dvoytenko","followers_url":"https://api.github.com/users/dvoytenko/followers","following_url":"https://api.github.com/users/dvoytenko/following{/other_user}","gists_url":"https://api.github.com/users/dvoytenko/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoytenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoytenko/subscriptions","organizations_url":"https://api.github.com/users/dvoytenko/orgs","repos_url":"https://api.github.com/users/dvoytenko/repos","events_url":"https://api.github.com/users/dvoytenko/events{/privacy}","received_events_url":"https://api.github.com/users/dvoytenko/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T20:03:20Z","updated_at":"2016-06-20T20:03:20Z","body":"De-dupping to #3554 since most of the discussion is taking place there."}}
{"actor":{"display_login":"dvoytenko"}}