hacking JsonValidSpec to go around some Intellij's Scala type resolution issues