Utility extendsion library for play-json
Transform keys painlessly
import play.api.libs.json.ext._
...
val madoka = JsObject(
Seq(
"firstName" -> JsString("Madoka"),
"lastName" -> JsString("Kaname")
)
)
val snakified = madoka.snakifyKeys()
snakified.camelizeKeys()
Just transform keys as you like and you won't got any StackOverFlow
Serialize json painlessly
val complex = largeJson(20000)
complex.safeToString() // no stackoverflow!
Json.stringify(complex) // stackoverflow!
More features woking in progress