implements newTagFromJSON in NBTFactory