Here is my Json:
{
"root": {
"qr": {
"content": "V1"
},
"datag": {
"content": {
"business": {
"content": [
{
"content": "car"
},
{
"content": "bike"
}
]
}
}
}
}
}
Here is my attempt but i receive compilation error:
implicit val reads: Reads[rules] = (
(JsPath \ "content" \ "qr" \ "content").readNullable[String] and
(JsPath \ "content" \ "datag" \ "content" \ "business" \ "content").readNullable[Seq[String]]
)(rules.apply _)
What's the best way to parse it as a list of string?
rulescase class and what is your compilation error ?