{"action":"closed","issue":{"url":"https://api.github.com/repos/castorjs/node-jbj/issues/6","labels_url":"https://api.github.com/repos/castorjs/node-jbj/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/castorjs/node-jbj/issues/6/comments","events_url":"https://api.github.com/repos/castorjs/node-jbj/issues/6/events","html_url":"https://github.com/castorjs/node-jbj/issues/6","id":60528721,"number":6,"title":"Add substring action","user":{"login":"parmentf","id":595509,"avatar_url":"https://avatars.githubusercontent.com/u/595509?v=3","gravatar_id":"","url":"https://api.github.com/users/parmentf","html_url":"https://github.com/parmentf","followers_url":"https://api.github.com/users/parmentf/followers","following_url":"https://api.github.com/users/parmentf/following{/other_user}","gists_url":"https://api.github.com/users/parmentf/gists{/gist_id}","starred_url":"https://api.github.com/users/parmentf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parmentf/subscriptions","organizations_url":"https://api.github.com/users/parmentf/orgs","repos_url":"https://api.github.com/users/parmentf/repos","events_url":"https://api.github.com/users/parmentf/events{/privacy}","received_events_url":"https://api.github.com/users/parmentf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/castorjs/node-jbj/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":{"login":"parmentf","id":595509,"avatar_url":"https://avatars.githubusercontent.com/u/595509?v=3","gravatar_id":"","url":"https://api.github.com/users/parmentf","html_url":"https://github.com/parmentf","followers_url":"https://api.github.com/users/parmentf/followers","following_url":"https://api.github.com/users/parmentf/following{/other_user}","gists_url":"https://api.github.com/users/parmentf/gists{/gist_id}","starred_url":"https://api.github.com/users/parmentf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parmentf/subscriptions","organizations_url":"https://api.github.com/users/parmentf/orgs","repos_url":"https://api.github.com/users/parmentf/repos","events_url":"https://api.github.com/users/parmentf/events{/privacy}","received_events_url":"https://api.github.com/users/parmentf/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-10T16:34:34Z","updated_at":"2015-03-10T17:12:23Z","closed_at":"2015-03-10T17:12:23Z","body":"For the moment, if you want to extract the month from a string `\"20150310\", you have to mess with `truncate` and `shift`. \r\n\r\n```json\r\n{\r\n  \"truncate\": 6,\r\n  \"shift\": 4\r\n}\r\n```\r\n\r\nMaybe a `substring: [offset, length]`  action would be more user friendly:\r\n\r\n```json\r\n{\r\n  \"substring\": [4,2]\r\n}\r\n```"}}