circlecell / jsonlint.com

[OLD] Please go to new source, link below.

Home Page:https://github.com/circlecell/jsonlint

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

line number mismatch?

getify opened this issue · comments

I may be missing something obvious, but this appears to show a mismatch in line numbers between what's highlighted above and what's written in the error message below:

screen shot 2014-10-16 at 9 50 47 am

Any thoughts?

I'm seeing the same here, missing ',' on line 22 however error says line 25.
This isn't affected by the formatting as the line stays on 22!

commented

Me too! The blue line highlighting feature is a few lines out. The pink results box line numbering is spot on and agrees with what I see in my text editor, vi.

FWIW, in my case, the blue line is correct, and error message reported in the ping box is wrong. Opposite of what @willberriss has reported.

commented

Well, it's more bizarre than that. The blue highlighted line is the correct line of code, but the blue text says it's line 22. But in reality it's not at line 22 it's a line 25. Both the pink box text and the editor vi say the line of code in question is at line 25. So they all agree on the line of code that has the error, but the blue box labels it line 22 but it should label it line 25.

@getify @antonyoneill @willberriss guys, can you provide an example of your JSON?

as this was over a year ago when first posted, I do not have any of that old context (the JSON I was using) anymore. sorry. :(

Cannot reproduce, closing.