{"action":"created","issue":{"url":"https://api.github.com/repos/FasterXML/jackson-core/issues/229","labels_url":"https://api.github.com/repos/FasterXML/jackson-core/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/FasterXML/jackson-core/issues/229/comments","events_url":"https://api.github.com/repos/FasterXML/jackson-core/issues/229/events","html_url":"https://github.com/FasterXML/jackson-core/issues/229","id":116640798,"number":229,"title":"Array element and field token spans include previous comma","user":{"login":"latkin","id":5943573,"avatar_url":"https://avatars.githubusercontent.com/u/5943573?v=3","gravatar_id":"","url":"https://api.github.com/users/latkin","html_url":"https://github.com/latkin","followers_url":"https://api.github.com/users/latkin/followers","following_url":"https://api.github.com/users/latkin/following{/other_user}","gists_url":"https://api.github.com/users/latkin/gists{/gist_id}","starred_url":"https://api.github.com/users/latkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latkin/subscriptions","organizations_url":"https://api.github.com/users/latkin/orgs","repos_url":"https://api.github.com/users/latkin/repos","events_url":"https://api.github.com/users/latkin/events{/privacy}","received_events_url":"https://api.github.com/users/latkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T21:10:09Z","updated_at":"2015-11-12T21:31:25Z","closed_at":null,"body":"Consider JSON blob\r\n\r\n```\r\n[1,    2,    3]\r\n```\r\n\r\nThe spans from `getTokenLocation` to `getCurrentLocation` when sitting on each `VALUE_NUMBER_INT` are currently\r\n\r\n```\r\n1\r\n,    2\r\n,    3\r\n```\r\n\r\nI would expect them to each be 1-char wide, i.e.\r\n\r\n```\r\n1\r\n2\r\n3\r\n```\r\n\r\nIs this expected/per-spec?"},"comment":{"url":"https://api.github.com/repos/FasterXML/jackson-core/issues/comments/156242300","html_url":"https://github.com/FasterXML/jackson-core/issues/229#issuecomment-156242300","issue_url":"https://api.github.com/repos/FasterXML/jackson-core/issues/229","id":156242300,"user":{"login":"latkin","id":5943573,"avatar_url":"https://avatars.githubusercontent.com/u/5943573?v=3","gravatar_id":"","url":"https://api.github.com/users/latkin","html_url":"https://github.com/latkin","followers_url":"https://api.github.com/users/latkin/followers","following_url":"https://api.github.com/users/latkin/following{/other_user}","gists_url":"https://api.github.com/users/latkin/gists{/gist_id}","starred_url":"https://api.github.com/users/latkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latkin/subscriptions","organizations_url":"https://api.github.com/users/latkin/orgs","repos_url":"https://api.github.com/users/latkin/repos","events_url":"https://api.github.com/users/latkin/events{/privacy}","received_events_url":"https://api.github.com/users/latkin/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T21:31:25Z","updated_at":"2015-11-12T21:31:25Z","body":"@cowtowncoder thanks for the confirmation.  Here's a repro in Scala (using Jackson 2.6.3).\r\n\r\n```scala\r\nval json = \"[1,     2,     3]\"\r\nval parser = new JsonFactory().createParser(json)\r\nwhile(parser.nextToken() != null) {\r\n  val tok = parser.getCurrentToken\r\n  val tokStart = parser.getTokenLocation.getCharOffset.toInt\r\n  val currLoc  = parser.getCurrentLocation.getCharOffset.toInt\r\n  val slice = json.substring(tokStart, currLoc)\r\n\r\n  println(f\"$tok%-20s Start: $tokStart%2d End: $currLoc%2d Slice: {$slice}\")\r\n}\r\n```\r\n\r\nOutput:\r\n\r\n```\r\nSTART_ARRAY          Start:  0 End:  1 Slice: {[}\r\nVALUE_NUMBER_INT     Start:  1 End:  2 Slice: {1}\r\nVALUE_NUMBER_INT     Start:  2 End:  9 Slice: {,     2}\r\nVALUE_NUMBER_INT     Start:  9 End: 16 Slice: {,     3}\r\nEND_ARRAY            Start: 16 End: 17 Slice: {]}\r\n```"}}