{"action":"created","issue":{"url":"https://api.github.com/repos/processone/xmpp/issues/7","repository_url":"https://api.github.com/repos/processone/xmpp","labels_url":"https://api.github.com/repos/processone/xmpp/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/processone/xmpp/issues/7/comments","events_url":"https://api.github.com/repos/processone/xmpp/issues/7/events","html_url":"https://github.com/processone/xmpp/issues/7","id":204018316,"number":7,"title":"How to decode with var","user":{"login":"nOmi7","id":6825834,"avatar_url":"https://avatars.githubusercontent.com/u/6825834?v=3","gravatar_id":"","url":"https://api.github.com/users/nOmi7","html_url":"https://github.com/nOmi7","followers_url":"https://api.github.com/users/nOmi7/followers","following_url":"https://api.github.com/users/nOmi7/following{/other_user}","gists_url":"https://api.github.com/users/nOmi7/gists{/gist_id}","starred_url":"https://api.github.com/users/nOmi7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nOmi7/subscriptions","organizations_url":"https://api.github.com/users/nOmi7/orgs","repos_url":"https://api.github.com/users/nOmi7/repos","events_url":"https://api.github.com/users/nOmi7/events{/privacy}","received_events_url":"https://api.github.com/users/nOmi7/received_events","type":"User","site_admin":false},"labels":[{"id":483662755,"url":"https://api.github.com/repos/processone/xmpp/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":{"login":"zinid","id":1095902,"avatar_url":"https://avatars.githubusercontent.com/u/1095902?v=3","gravatar_id":"","url":"https://api.github.com/users/zinid","html_url":"https://github.com/zinid","followers_url":"https://api.github.com/users/zinid/followers","following_url":"https://api.github.com/users/zinid/following{/other_user}","gists_url":"https://api.github.com/users/zinid/gists{/gist_id}","starred_url":"https://api.github.com/users/zinid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zinid/subscriptions","organizations_url":"https://api.github.com/users/zinid/orgs","repos_url":"https://api.github.com/users/zinid/repos","events_url":"https://api.github.com/users/zinid/events{/privacy}","received_events_url":"https://api.github.com/users/zinid/received_events","type":"User","site_admin":false},"assignees":[{"login":"zinid","id":1095902,"avatar_url":"https://avatars.githubusercontent.com/u/1095902?v=3","gravatar_id":"","url":"https://api.github.com/users/zinid","html_url":"https://github.com/zinid","followers_url":"https://api.github.com/users/zinid/followers","following_url":"https://api.github.com/users/zinid/following{/other_user}","gists_url":"https://api.github.com/users/zinid/gists{/gist_id}","starred_url":"https://api.github.com/users/zinid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zinid/subscriptions","organizations_url":"https://api.github.com/users/zinid/orgs","repos_url":"https://api.github.com/users/zinid/repos","events_url":"https://api.github.com/users/zinid/events{/privacy}","received_events_url":"https://api.github.com/users/zinid/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2017-01-30T14:02:52Z","updated_at":"2017-01-30T14:49:39Z","closed_at":"2017-01-30T14:49:39Z","body":"Hello i want to write a custom spec  in xmpp_codec.spec which will decode json cdata\r\n\r\n_-xml(sync,\r\n     #elem{name = <<\"sync\">>,\r\n     xmlns =  <<\"mycustom:xmlsns:sync\">>,\r\n     cdata =  #cdata{label = '$json',\r\n     \t\t\t  dec = {jsonutil,dec_json, []},  ### how to pass the attribute variable here \r\n     \t\t\t  enc = {jsonutil,enc_json, []}},  ### how to pass the attribute variable here \r\n     result = {sync, '$c','$json', '$_els'},\r\n     attrs = [ #attr{name = <<\"c\">>,\r\n                     default = 0}\r\n             ]})._\r\n\r\nin dec = dec_json ,  [] i want to pass the label '$c' so that my decode will be based on '$c'\r\n\r\nhow can i achieve this right now it just accepts the atom or constants is it possible to pass a attribute var ?\r\nany other method i can achieve this? \r\n\r\nMerci\r\n"},"comment":{"url":"https://api.github.com/repos/processone/xmpp/issues/comments/276081317","html_url":"https://github.com/processone/xmpp/issues/7#issuecomment-276081317","issue_url":"https://api.github.com/repos/processone/xmpp/issues/7","id":276081317,"user":{"login":"nOmi7","id":6825834,"avatar_url":"https://avatars.githubusercontent.com/u/6825834?v=3","gravatar_id":"","url":"https://api.github.com/users/nOmi7","html_url":"https://github.com/nOmi7","followers_url":"https://api.github.com/users/nOmi7/followers","following_url":"https://api.github.com/users/nOmi7/following{/other_user}","gists_url":"https://api.github.com/users/nOmi7/gists{/gist_id}","starred_url":"https://api.github.com/users/nOmi7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nOmi7/subscriptions","organizations_url":"https://api.github.com/users/nOmi7/orgs","repos_url":"https://api.github.com/users/nOmi7/repos","events_url":"https://api.github.com/users/nOmi7/events{/privacy}","received_events_url":"https://api.github.com/users/nOmi7/received_events","type":"User","site_admin":false},"created_at":"2017-01-30T14:49:39Z","updated_at":"2017-01-30T14:49:39Z","body":"Cool thanks hope we can get this conditional decoding ... :) thanks for your help 👍 "}}
{"actor":{"display_login":"nOmi7"}}