BooleanAdapter Does Not Move to Next JSON Token
Closed this issue · 0 comments
rgauss commented
Describe the bug
JSON containing boolean fields can not currently be parsed.
The BooleanAdapter does not currently move to the next JSON token during parsing from a JsonParser
(which the underlying AbstractJavaTypeAdapter
does in its parse method).
Who is the bug affecting?
Anyone parsing JSON with boolean fields
What is affected by this bug?
Downstream, the liboscal-java can not parse OSCAL Profiles in JSON format. (I'll create an issue there as well)
When does this occur?
Always.
How do we replicate the issue?
- Attempt to parse a JSON document containing a boolean field
- An error indicating the current token is still the true value occurs
Expected behavior (i.e. solution)
JSON documents containing boolean fields should parse without error