{"action":"created","issue":{"url":"https://api.github.com/repos/cantino/huginn/issues/1812","repository_url":"https://api.github.com/repos/cantino/huginn","labels_url":"https://api.github.com/repos/cantino/huginn/issues/1812/labels{/name}","comments_url":"https://api.github.com/repos/cantino/huginn/issues/1812/comments","events_url":"https://api.github.com/repos/cantino/huginn/issues/1812/events","html_url":"https://github.com/cantino/huginn/issues/1812","id":190858118,"number":1812,"title":"Unescaping in new Template feature in WebsiteAgent","user":{"login":"bobbysteel","id":295361,"avatar_url":"https://avatars.githubusercontent.com/u/295361?v=3","gravatar_id":"","url":"https://api.github.com/users/bobbysteel","html_url":"https://github.com/bobbysteel","followers_url":"https://api.github.com/users/bobbysteel/followers","following_url":"https://api.github.com/users/bobbysteel/following{/other_user}","gists_url":"https://api.github.com/users/bobbysteel/gists{/gist_id}","starred_url":"https://api.github.com/users/bobbysteel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bobbysteel/subscriptions","organizations_url":"https://api.github.com/users/bobbysteel/orgs","repos_url":"https://api.github.com/users/bobbysteel/repos","events_url":"https://api.github.com/users/bobbysteel/events{/privacy}","received_events_url":"https://api.github.com/users/bobbysteel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-21T22:46:38Z","updated_at":"2016-11-21T23:54:31Z","closed_at":null,"body":"The templating work that @knu did is awesome. However I'm having an issue passing Arrays through to be parsed as JSON. Without using the template option this works fine. With templates, the Array is quotation mark escaped and nothing I do can seem to make it readable by my next agent, a Javascript agent.\r\nWithout using template, just extract:\r\n`\r\n  \"last_investors\": [\r\n      {\r\n        \"id\": 1727,\r\n        \"name\": \"Bessemer Venture Partners\"\r\n      },\r\n      {\r\n        \"id\": 2588,\r\n        \"name\": \"Mangrove Capital Partners\"\r\n      },\r\n      {\r\n        \"id\": 30228,\r\n        \"name\": \"Primary Venture Partners\"\r\n      },\r\n      {\r\n        \"id\": 33629,\r\n        \"name\": \"Lerer Hippeau\"\r\n      },\r\n      {\r\n        \"id\": 73867,\r\n        \"name\": \"Comcast Ventures\"\r\n      }\r\n    ],\r\n`\r\nWith using template and in this case just passing through \"last_investors\": \"{{last_investors | json}}\" from the extract:\r\n`\r\n    \"last_investors\": \"[{\\\"id\\\":1727,\\\"name\\\":\\\"Bessemer Venture Partners\\\"},{\\\"id\\\":2588,\\\"name\\\":\\\"Mangrove Capital Partners\\\"},{\\\"id\\\":30228,\\\"name\\\":\\\"Primary Venture Partners\\\"},{\\\"id\\\":33629,\\\"name\\\":\\\"Lerer Hippeau\\\"},{\\\"id\\\":73867,\\\"name\\\":\\\"Comcast Ventures\\\"}]\",\r\n`\r\nAny ideas how to fix and just pass straight through (or some undocumented unescape command)? Thanks."},"comment":{"url":"https://api.github.com/repos/cantino/huginn/issues/comments/262105553","html_url":"https://github.com/cantino/huginn/issues/1812#issuecomment-262105553","issue_url":"https://api.github.com/repos/cantino/huginn/issues/1812","id":262105553,"user":{"login":"knu","id":10236,"avatar_url":"https://avatars.githubusercontent.com/u/10236?v=3","gravatar_id":"","url":"https://api.github.com/users/knu","html_url":"https://github.com/knu","followers_url":"https://api.github.com/users/knu/followers","following_url":"https://api.github.com/users/knu/following{/other_user}","gists_url":"https://api.github.com/users/knu/gists{/gist_id}","starred_url":"https://api.github.com/users/knu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knu/subscriptions","organizations_url":"https://api.github.com/users/knu/orgs","repos_url":"https://api.github.com/users/knu/repos","events_url":"https://api.github.com/users/knu/events{/privacy}","received_events_url":"https://api.github.com/users/knu/received_events","type":"User","site_admin":false},"created_at":"2016-11-21T23:54:31Z","updated_at":"2016-11-21T23:54:31Z","body":"I guess you could use the `as_object` filter that was added recently."}}
{"actor":{"display_login":"knu"}}