Hi,
For project I'm working on, I need to get tokens from a source file with
it's start and end location. Using `JsonParser`, and it's methods
`getTokenLocation` and `getCurrentLocation` with theirs `getLineNr` and
`getColumnNr` seemed to me like a perfect solution. Unfortunately, it
turned out, for a field name it `getCurrentLocation` is a either position
where field value token (next token) ends or before new line, whichever
coming earlier. I would expect it to be right after closing double-quote.
{
"fieldName" : "fieldValue"
}
Philosophical/Design question: is this okay?
Practical question: for my purposes, is this appropriate to use my original
solution (with `getTokenLocation` and `getCurrentLocation`) and for
FIELD_NAME override it with `getTokenLocation.getColumnNr` +
`getTextLength` + 2 (for opening and closing double-quotes)?
--
You received this message because you are subscribed to the Google Groups
"jackson-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jackson-user/1f499f36-ad64-4de4-a439-8d6b1892acfe%40googlegroups.com.