klaxon icon indicating copy to clipboard operation
klaxon copied to clipboard

JsonReader cannot get null values using public functions

Open mgroth0 opened this issue 4 years ago • 1 comments

Each of JsonReader's public functions do not accept null values anymore. I used to use nextString(), but now even that doesn't work. consumeValue<String?>() would work, however consumeValue is private.

For example, I don't know how to parse this in the streaming API:

{
"key": null
}

mgroth0 avatar Jul 29 '19 23:07 mgroth0

Having the same issue. Looks to be caused by how consumeValue is defined in JsonReader.

DavidGrinberg avatar May 02 '20 19:05 DavidGrinberg