How to resolve recursive decoding in Circe when parsing Json?

I want to parse a JSON string using Circa. You can find an example of the input JSON below. It’s a kind of recursive data. So my property entity contains dependencies of entities. I want to parse dependencies to map Map[String, Tasks]. { “entity”: [ { “task_id”: “X”, “type”: “test”, “attributes”: { “name”: “A”, “random_property_count”:…