Parsing json with optional Either property

I am trying to parse a json with optional Either property, not optional or either but both.

I have tried to do it in Haskell and it works. Can it be supported in Play Json or other json library in Scala?


the most interesting property is the secondary field:

This is the boiler plate in scala to begin with if someone find it helpful