-
Notifications
You must be signed in to change notification settings - Fork 190
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
JsonReader for List[T] #267
Comments
Yes, right now, it is like that. The reason is that the way the implicits are structured don't allow for an easy split up of specific |
Is any change planned for this? If it's too dangerous right now then it always will be, I suppose? This behaviour is quite misleading and it makes |
spray-json has JsonFormat for a List[T] but doesn't have JsonReader.
spray-json/src/main/scala/spray/json/CollectionFormats.scala
Lines 22 to 31 in 326a001
I'm writing a domain model and most of my entities have only JsonReaders defined.
I don't need to serialize to JSON (only parse) so I decided to not implement JsonWriters/JsonFormat.
Is this by design always assumed that that users should implement full JsonFormat rather than only JsonReader (or only JsonWriter)?
In some cases serialization expected to be used only in one way or another, so implementing JsonFormat may be unnecessary sometimes.
SO: https://stackoverflow.com/q/51331765/191683
The text was updated successfully, but these errors were encountered: