Table of Contents
Dynamic JSON 🔗
Sometimes you don't know exactly the structure of incoming JSON payload.
Since Tupson uses Jawn's under cover, you can use its JValue directly:
import org.typelevel.jawn.ast.JValue
case class MyData(
str: String,
dynamic: JValue // this key's data can be anything: null, string, object, sequence...
) derives JsonRW