{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/vector-tile-spec/issues/75","repository_url":"https://api.github.com/repos/mapbox/vector-tile-spec","labels_url":"https://api.github.com/repos/mapbox/vector-tile-spec/issues/75/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/vector-tile-spec/issues/75/comments","events_url":"https://api.github.com/repos/mapbox/vector-tile-spec/issues/75/events","html_url":"https://github.com/mapbox/vector-tile-spec/issues/75","id":152880521,"number":75,"title":"How are property values that are objects/arrays encoded in vector tiles?","user":{"login":"mapsam","id":1943001,"avatar_url":"https://avatars.githubusercontent.com/u/1943001?v=3","gravatar_id":"","url":"https://api.github.com/users/mapsam","html_url":"https://github.com/mapsam","followers_url":"https://api.github.com/users/mapsam/followers","following_url":"https://api.github.com/users/mapsam/following{/other_user}","gists_url":"https://api.github.com/users/mapsam/gists{/gist_id}","starred_url":"https://api.github.com/users/mapsam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mapsam/subscriptions","organizations_url":"https://api.github.com/users/mapsam/orgs","repos_url":"https://api.github.com/users/mapsam/repos","events_url":"https://api.github.com/users/mapsam/events{/privacy}","received_events_url":"https://api.github.com/users/mapsam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":17,"created_at":"2016-05-03T21:37:49Z","updated_at":"2016-09-27T21:58:35Z","closed_at":null,"body":"It would be great to add an example of encoding an `Array` or `Object` from the original GeoJSON to the PBF value (from the [`4.5` example](https://github.com/mapbox/vector-tile-spec/tree/master/2.1#45-example)) to make it clear how the v2 spec should encode these values. Are the values encoded as string values and required to be parsed by the user? \r\n\r\ni.e. for an array value:\r\n\r\n```\r\nvalues: {\r\n  string_value: \"[\\\"one\\\",\\\"two\\\",3]\"\r\n}\r\n```\r\n\r\nRelated to https://github.com/mapbox/vector-tiles/issues/12\r\n\r\ncc @flippmoke @danswick "},"comment":{"url":"https://api.github.com/repos/mapbox/vector-tile-spec/issues/comments/250011684","html_url":"https://github.com/mapbox/vector-tile-spec/issues/75#issuecomment-250011684","issue_url":"https://api.github.com/repos/mapbox/vector-tile-spec/issues/75","id":250011684,"user":{"login":"ericfischer","id":1951835,"avatar_url":"https://avatars.githubusercontent.com/u/1951835?v=3","gravatar_id":"","url":"https://api.github.com/users/ericfischer","html_url":"https://github.com/ericfischer","followers_url":"https://api.github.com/users/ericfischer/followers","following_url":"https://api.github.com/users/ericfischer/following{/other_user}","gists_url":"https://api.github.com/users/ericfischer/gists{/gist_id}","starred_url":"https://api.github.com/users/ericfischer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericfischer/subscriptions","organizations_url":"https://api.github.com/users/ericfischer/orgs","repos_url":"https://api.github.com/users/ericfischer/repos","events_url":"https://api.github.com/users/ericfischer/events{/privacy}","received_events_url":"https://api.github.com/users/ericfischer/received_events","type":"User","site_admin":false},"created_at":"2016-09-27T21:58:35Z","updated_at":"2016-09-27T21:58:35Z","body":"If we're going to allow nesting at all, and it requires a version bump, why not allow arbitrary JSON objects?\r\n\r\nValues are already tagged with an integer for their type, and only 1 through 7 are defined. So type 8 could denote that the value is an array (encoded as an integer array of sub-values) and type 9 denote that it is a hash (encoded as an integer array of sub-keys alternating with sub-values).\r\n\r\nSo a feature with this attribute:\r\n\r\n```\r\n\"nested\" : { \"one\" : \"two\", \"three\" : [ 4, 5, 6 ] }\r\n```\r\n\r\nwould have these keys in the layer:\r\n\r\n```\r\n0. nested\r\n1. one\r\n2. three\r\n```\r\n\r\nand these values:\r\n\r\n```\r\n0. two (string)\r\n1. 4 (int)\r\n2. 5 (int)\r\n3. 6 (int)\r\n4. 1,2,3 (list)\r\n5. 1,0,2,4 (hash)\r\n```\r\n\r\nwith an outer key-value list of\r\n\r\n```\r\n0,5\r\n```"}}
{"actor":{"display_login":"ericfischer"}}