I really hate Object. This should be a sum type. But really, I shouldn't use Java at all, I should use Scala with Argonaut. Nothing would be lost by doing that here, we could still call into it from Java projects like Jenkins.