JSON parser doesn't report end line and col
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
Medium
|
Paul J. Lucas |
Bug Description
The following query:
declare namespace err = "http://
declare namespace zerr = "http://
import module namespace jx = "http://
let $src := '{
"_id" : "511C7C5C9A277C
"question_id" : 1777103,
"
"
"
"score" : 248,'
return
try {
}
catch * {
{
"error": true,
"code": $err:code,
"module": $err:module,
}
}
Returns:
{
"error" : true,
"code" : "jerr:JNDY0021",
"description" : "\"<none>\": unexpected JSON token",
"module" : "/Users/
"line-number" : 19,
"column-number" : 17,
"line-number-end" : 0,
"column-
}
In this scenario, "line-number-end" : 0, "column-number-end" : 0 doesn't seem to be correct.
Changed in zorba: | |
assignee: | nobody → Paul J. Lucas (paul-lucas) |
description: | updated |
Changed in zorba: | |
importance: | Undecided → Medium |
description: | updated |
Changed in zorba: | |
status: | New → Fix Committed |
Who said $zerr:line- number- end and $zerr:column- number- end are supposed to have any value set at all?