New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSONFormat.defaultFormat doesn't handle null values #5092
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5092?orig=1 |
David Leppik (dleppik) said: case null => "null" This is important to fix, since nulls are commonly used in JSON, including in third-party JavaScript libraries, so proper handling of nulls is necessary. (A more Scala-ish solution would be to format None as null, and then parse JSON nulls into None.) |
@adriaanm said: |
ChangZhuo Chen (陳昌倬) (czchen) said: The deprecated annotation is removed in [0], and #6571 said "closing as meta-bug – the individual tickets will still be fixed if they haven't already". However, this issue still happens in Scala 2.10.5. So I am not sure it is deprecated or revived right now? Please provide the information so that we can decide continuously use it or change to third-party library, thanks. |
@adriaanm said: |
@soc said: Maybe the merge was an oversight? |
@adriaanm said: |
will throw an exception:
This is works in 2.8, so it's clearly a regression.
The text was updated successfully, but these errors were encountered: