{"action":"created","issue":{"url":"https://api.github.com/repos/russmatney/super-object-mapper/issues/7","labels_url":"https://api.github.com/repos/russmatney/super-object-mapper/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/russmatney/super-object-mapper/issues/7/comments","events_url":"https://api.github.com/repos/russmatney/super-object-mapper/issues/7/events","html_url":"https://github.com/russmatney/super-object-mapper/issues/7","id":96567386,"number":7,"title":"Map to array","user":{"login":"rafakato","id":2872804,"avatar_url":"https://avatars.githubusercontent.com/u/2872804?v=3","gravatar_id":"","url":"https://api.github.com/users/rafakato","html_url":"https://github.com/rafakato","followers_url":"https://api.github.com/users/rafakato/followers","following_url":"https://api.github.com/users/rafakato/following{/other_user}","gists_url":"https://api.github.com/users/rafakato/gists{/gist_id}","starred_url":"https://api.github.com/users/rafakato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafakato/subscriptions","organizations_url":"https://api.github.com/users/rafakato/orgs","repos_url":"https://api.github.com/users/rafakato/repos","events_url":"https://api.github.com/users/rafakato/events{/privacy}","received_events_url":"https://api.github.com/users/rafakato/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-22T13:25:48Z","updated_at":"2015-07-25T15:38:04Z","closed_at":null,"body":"Hello,\r\n\r\nIs there a way to map a object like this:\r\n```json\r\n[{\r\n\t\"title\": \"Product Title\",\r\n\t\"price\": 199\r\n}, {\r\n\t\"title\": \"Product 2 Title\",\r\n\t\"price\": 399\r\n}]\r\n```\r\n\r\nto this:\r\n```json\r\n[{\r\n\t\"name\": \"Product Title\",\r\n\t\"price\": [{\r\n\t\t\"list\": 199,\r\n\t\t\"value\": 199\r\n\t}]\r\n}, {\r\n\t\"name\": \"Product 2 Title\",\r\n\t\"price\": [{\r\n\t\t\"list\": 399,\r\n\t\t\"value\": 399\r\n\t}]\r\n}]\r\n```\r\n\r\nI thought of a map like this:\r\n```js\r\nvar map = {\r\n\t\"products\": {\r\n\t\t{\r\n\t\t\t\"title\": \"name\",\r\n\t\t\t\"price\": \"price[].list\",\r\n\t\t\t\"price\": \"price[].value\"\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/russmatney/super-object-mapper/issues/comments/124853862","html_url":"https://github.com/russmatney/super-object-mapper/issues/7#issuecomment-124853862","issue_url":"https://api.github.com/repos/russmatney/super-object-mapper/issues/7","id":124853862,"user":{"login":"russmatney","id":1596350,"avatar_url":"https://avatars.githubusercontent.com/u/1596350?v=3","gravatar_id":"","url":"https://api.github.com/users/russmatney","html_url":"https://github.com/russmatney","followers_url":"https://api.github.com/users/russmatney/followers","following_url":"https://api.github.com/users/russmatney/following{/other_user}","gists_url":"https://api.github.com/users/russmatney/gists{/gist_id}","starred_url":"https://api.github.com/users/russmatney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/russmatney/subscriptions","organizations_url":"https://api.github.com/users/russmatney/orgs","repos_url":"https://api.github.com/users/russmatney/repos","events_url":"https://api.github.com/users/russmatney/events{/privacy}","received_events_url":"https://api.github.com/users/russmatney/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T15:38:04Z","updated_at":"2015-07-25T15:38:04Z","body":"Yeah – I can get to it this this weekend. Thanks for putting the time in! I'll check it out and update when I get a minute."}}