renamed isGeneric to a more functional asJson