{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/presto/issues/2212","labels_url":"https://api.github.com/repos/facebook/presto/issues/2212/labels{/name}","comments_url":"https://api.github.com/repos/facebook/presto/issues/2212/comments","events_url":"https://api.github.com/repos/facebook/presto/issues/2212/events","html_url":"https://github.com/facebook/presto/issues/2212","id":53900953,"number":2212,"title":"JSON functions need categorized errors","user":{"login":"electrum","id":9230,"avatar_url":"https://avatars.githubusercontent.com/u/9230?v=3","gravatar_id":"","url":"https://api.github.com/users/electrum","html_url":"https://github.com/electrum","followers_url":"https://api.github.com/users/electrum/followers","following_url":"https://api.github.com/users/electrum/following{/other_user}","gists_url":"https://api.github.com/users/electrum/gists{/gist_id}","starred_url":"https://api.github.com/users/electrum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/electrum/subscriptions","organizations_url":"https://api.github.com/users/electrum/orgs","repos_url":"https://api.github.com/users/electrum/repos","events_url":"https://api.github.com/users/electrum/events{/privacy}","received_events_url":"https://api.github.com/users/electrum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/presto/labels/beginner-task","name":"beginner-task","color":"009800"},{"url":"https://api.github.com/repos/facebook/presto/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-09T18:49:09Z","updated_at":"2015-01-12T21:12:35Z","closed_at":null,"body":"This is one example, but there might be others. The unit tests need to include negative tests as well. See `assertInvalidFunction` in `TestStringFunctions`.\r\n\r\n```\r\npresto> select json_extract_scalar('', '');\r\n...\r\nCaused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0"},"comment":{"url":"https://api.github.com/repos/facebook/presto/issues/comments/69646863","html_url":"https://github.com/facebook/presto/issues/2212#issuecomment-69646863","issue_url":"https://api.github.com/repos/facebook/presto/issues/2212","id":69646863,"user":{"login":"nezihyigitbasi","id":1223839,"avatar_url":"https://avatars.githubusercontent.com/u/1223839?v=3","gravatar_id":"","url":"https://api.github.com/users/nezihyigitbasi","html_url":"https://github.com/nezihyigitbasi","followers_url":"https://api.github.com/users/nezihyigitbasi/followers","following_url":"https://api.github.com/users/nezihyigitbasi/following{/other_user}","gists_url":"https://api.github.com/users/nezihyigitbasi/gists{/gist_id}","starred_url":"https://api.github.com/users/nezihyigitbasi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nezihyigitbasi/subscriptions","organizations_url":"https://api.github.com/users/nezihyigitbasi/orgs","repos_url":"https://api.github.com/users/nezihyigitbasi/repos","events_url":"https://api.github.com/users/nezihyigitbasi/events{/privacy}","received_events_url":"https://api.github.com/users/nezihyigitbasi/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T21:12:35Z","updated_at":"2015-01-12T21:12:35Z","body":"taking a look at this one"}}