Open nykolaslima opened 9 years ago
Adding NullOptions
make it work but it doesn't make sense at all. If the value is None
I want it to do not render the field. Besides that, in this specific case the id
field has a value(Some(1)
) and even with that I got the ClassCastException
.
This sounds like a bug in spray-json. What do you guys think?
This looks strange. Could you provide us with a small complete example demonstrating the problem?
Facing the same issue.
@nykolaslima did you manage to solve this?
I solved this by deleting my local ivy2 cache and running sbt clean compile
I have a case class with a
id
attribute that's anOption[Int]
. When I try to serialize it as a JSON I got the following error: