This will allow you to create custom mob spawners that don't revert back to pig spawners. Updated for 1.13.
Replace these lines with the entitiy id you want:
id:witch
id:"minecraft:witch"
Replace this line to change the name of the spawner:
Name:"Witch Spawner"