Open GoogleCodeExporter opened 8 years ago
oh, or maybe JSONTokenizer.as
Original comment by Tou...@gmail.com
on 17 Feb 2010 at 9:54
I did this in JSONTokenizer, though I'm sure a property with the line number
and a way to append it in the
parseError (where the rest of the message is constructed) call would be more
appropriate. This worked for my
needs though.
public function parseError( message:String ):void {
throw new JSONParseError(
message + " (line " + jsonString.substring(0, loc).split("\n").length +")",
loc, jsonString
);
}
Original comment by Tou...@gmail.com
on 3 Mar 2010 at 7:35
Original issue reported on code.google.com by
Tou...@gmail.com
on 17 Feb 2010 at 9:42