[1.21.1] Adding a signed Written Book to a loot table

Hello,

I have been running into an issue attempting to add a written and signed book to a loot table, containing pre-determined text. This is the code I have been messing around with, but nothing seems to work.

I have also attached a picture below of the book's internal data as well (the text I'm trying to replicate in a loot table format).

  "pools": [
    {
      "rolls": 1,
      "entries": [
        {
                    "type": "minecraft:item",
                    "name": "minecraft:written_book",
                    "functions": [
                        {
                            "function": "minecraft:set_components",
                            "components": {
                                "minecraft:written_book_content": "{author:\"energyzd1\",pages:[{raw:'\"Hi\"'},{raw:'\"Bye\"'}],resolved:1b,title:{raw:\"Test\"}}"
                            }
                        }
                    ]
                }
      ]
    }
  ]
}
Continue to help post