{"action":"created","issue":{"url":"https://api.github.com/repos/amida-tech/jsonapter/issues/36","repository_url":"https://api.github.com/repos/amida-tech/jsonapter","labels_url":"https://api.github.com/repos/amida-tech/jsonapter/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/amida-tech/jsonapter/issues/36/comments","events_url":"https://api.github.com/repos/amida-tech/jsonapter/issues/36/events","html_url":"https://github.com/amida-tech/jsonapter/issues/36","id":186621123,"number":36,"title":"Enhancement: access the value of the current element without using a function!","user":{"login":"fastcodejava","id":11984116,"avatar_url":"https://avatars.githubusercontent.com/u/11984116?v=3","gravatar_id":"","url":"https://api.github.com/users/fastcodejava","html_url":"https://github.com/fastcodejava","followers_url":"https://api.github.com/users/fastcodejava/followers","following_url":"https://api.github.com/users/fastcodejava/following{/other_user}","gists_url":"https://api.github.com/users/fastcodejava/gists{/gist_id}","starred_url":"https://api.github.com/users/fastcodejava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastcodejava/subscriptions","organizations_url":"https://api.github.com/users/fastcodejava/orgs","repos_url":"https://api.github.com/users/fastcodejava/repos","events_url":"https://api.github.com/users/fastcodejava/events{/privacy}","received_events_url":"https://api.github.com/users/fastcodejava/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-01T19:15:15Z","updated_at":"2016-11-03T01:24:01Z","closed_at":null,"body":"This is the issue I'm trying to solve, given the input\r\n\r\n    {product: \"iProd\"}\r\n\r\n I want to have this output:\r\n\r\n    {\r\n                        type: \"product\",\r\n                        value: \"iProd\"\r\n    }\r\n\r\nthe template \r\n\r\n      {\r\n            dataKey: \"product\",\r\n                content: {\r\n                    type: {constant: 'product'},\r\n                    value: {value: function (input) {return input;}}\r\n                }\r\n        }\r\n\r\nHow to access the value of the current element without using a **function**.\r\nI'm thinking putting the `dataKey` with the dot (.) or introduce a different key?\r\n@au2 what do you think?\r\n"},"comment":{"url":"https://api.github.com/repos/amida-tech/jsonapter/issues/comments/258046488","html_url":"https://github.com/amida-tech/jsonapter/issues/36#issuecomment-258046488","issue_url":"https://api.github.com/repos/amida-tech/jsonapter/issues/36","id":258046488,"user":{"login":"fastcodejava","id":11984116,"avatar_url":"https://avatars.githubusercontent.com/u/11984116?v=3","gravatar_id":"","url":"https://api.github.com/users/fastcodejava","html_url":"https://github.com/fastcodejava","followers_url":"https://api.github.com/users/fastcodejava/followers","following_url":"https://api.github.com/users/fastcodejava/following{/other_user}","gists_url":"https://api.github.com/users/fastcodejava/gists{/gist_id}","starred_url":"https://api.github.com/users/fastcodejava/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastcodejava/subscriptions","organizations_url":"https://api.github.com/users/fastcodejava/orgs","repos_url":"https://api.github.com/users/fastcodejava/repos","events_url":"https://api.github.com/users/fastcodejava/events{/privacy}","received_events_url":"https://api.github.com/users/fastcodejava/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T01:24:01Z","updated_at":"2016-11-03T01:24:01Z","body":"​Yeah `identity` would definitely work but I was thinking of some syntactic sugar like : \r\n\r\n```\r\n  {\r\n        dataKey: \"product\",\r\n            content: {\r\n                type: {constant: 'product'},\r\n                value: {}\r\n            }\r\n    }\r\n```"}}
{"actor":{"display_login":"fastcodejava"}}