You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
openjdk version "1.8.0_282"
OpenJDK Runtime Environment (AdoptOpenJDK)(build 1.8.0_282-b08)
OpenJDK 64-Bit Server VM (AdoptOpenJDK)(build 25.282-b08, mixed mode)
I have a definition
caseclassTest(t: Option[String])
The json
{"t": null}
is extracted successfully below
implicitvalformats:Formats=DefaultFormats.strict
read[Test](j)
// val res8: Test = Test(None)
and here too
implicitvalformats:Formats=DefaultFormats.withExtractionNullStrategy(ExtractionNullStrategy.Disallow)
read[Test](j)
// val res9: Test = Test(None)
but not when i combine both
implicitvalformats:Formats=DefaultFormats.withExtractionNullStrategy(ExtractionNullStrategy.Disallow).strict
read[Test](j)
// org.json4s.MappingException: No usable value for t// Did not find value which can be converted into java.lang.String// at org.json4s.reflect.package$.fail(package.scala:56)
I would like to have both. Am I misunderstanding the intentions behind these flags or is this a bug?
The text was updated successfully, but these errors were encountered:
json4s version
4.0.6
scala version
2.13.5
jdk version
I have a definition
The json
is extracted successfully below
and here too
but not when i combine both
I would like to have both. Am I misunderstanding the intentions behind these flags or is this a bug?
The text was updated successfully, but these errors were encountered: