another nice new thing in 6
# lucee
z
another nice new thing in 6
👏 3
👏🏻 1
b
So? What do "Expression [9]" and "position [1025]" mean in this context?
And is "Detail" the value of 'x'?
z
characr 9 at 1025 is invalid
detail is a snippet of the context where the json parsing failed
b
ok, thanks.
Yeah, in the context of the previous error message that's a big improvement!
a
I dunno that "expression" is the right word there. It's invalid JSON, which is just a string. Whilst a string is an expression, what you are really saying is "that bit in the string at position 1025 means that the string can't be parsed as JSON". It's also not a syntax error. For it to be a syntax error, it would mean the string is malformed or something, eg:
Copy code
s = "123 // oops not terminated
It's a JsonParsingException or something like that.
The overall idea is sound though. Good work, and especially good work bringing it back to the community for review like this.
👍 1