Minecraft wiki entry for Enchanted_Book, associated text: Enchanted books use an NBT tag StoredEnchantments to indicate the enchantment. The allowed sub-tags are id and lvl, equivalent to the format of the Enchantments tag that is used for enchantments applied to items.