pushka
pushka copied to clipboard
ABANDONED Pure Scala serialization library with annotations
```scala [error] D:\work\boopickle\perftests\shared\src\main\scala\boopickle\perftests\TestData.scala:8: type mismatch; [error] found : Some[A] [error] required: Option[pushka.HasDefault.Default[String]] [error] @pushka case class Book(id: String, name: String, author: String, publicationYear: Int) [error] ^ ```
lets look what i mean ``` @pushka case class BaseMessage(uid: String) @pushka case class HandshakeRequest(@pushkaIgnore uid: String, user: String, timestamp: String, token: String) extends BaseMessage(uid) ``` i want to ignore...
```scala @pushka case class Foo(key1: Int, key2: Seq[String]) val foo = read[Foo]("""{ "key1": 10, "key2": "value" }""") assert(foo == Foo(10, "value")) ```
It would be great if there would be a way to convert json to BSONDocument (reactivemongo) and there would be a way to create custom handlers for some fields.
Currently most scala code follows the following naming scheme: ``` case class User(firstName: String, lastName: String) ``` While in Json the object would be written has: ``` var user =...
``` scala @pushka sealed trait Event object Event { object Chat { case class MessageSent(chatId: Long, sender: User, text: String) extends Event } object System { case class Maintenance(message: String)...