I've got the following JSON structure and I can't find a good way to parse it in Scala (I'm using circe BTW):
{
"name": "xx",
"args": [
{"name":"xy", "args": []},
[
{"name":"xy", "args": []},
{"name":"xy", "args": [[]]}
],
[
[
{"name":"xy", "args": [{"name":"xy", "args": []}]}
]
]
]
}
Basically, it's a recursive structure that can contain either object, or list of objects, or list of lists, or list of lists of lists... or objects and lists.
How can I handle that? I'm thinking about some recursive types but I'm not sure about that.