Dear all,
I have this output from MYSQL.
I want to take the task_type as key & task_content as value, and use them down the road in another module. Any idea how to do? Aggregator? It seems wrong to use iterator as I need to set the variable I suppose?
Thank you in advance for your help.
attached is the bundles:
[
{
“id”: 13,
“recipes_processed_id”: 109,
“task_type”: “crosscheck_title_output”,
“task_priority”: 0,
“pending”: null,
“need_regenerate”: null,
“task_content”: “YES”,
“task_html”: null,
“created_at”: “2024-04-18T18:50:45.000Z”,
“updated_at”: “2024-04-18T18:50:45.000Z”,
“synced_at”: null,
“last_error_at”: null,
“IMTINDEX”: 1,
“IMTLENGTH”: 3
},
{
“id”: 12,
“recipes_processed_id”: 109,
“task_type”: “faq”,
“task_priority”: 0,
“pending”: null,
“need_regenerate”: null,
“task_content”: “### What does lemon juice do to a potato?\n@@@ Lemon juice prevents potatoes from discoloring by slowing down the oxidation process. When you soak cut potatoes in water with lemon juice, the citric acid from the lemon helps maintain their natural color.\n\n### What potatoes does Gordon Ramsay use?\n@@@ Gordon Ramsay often opts for Yukon Gold Potatoes in his recipes. They have a good balance of starch and moisture, making them versatile for various cooking methods, including roasting and mashing.\n\n### Should I marinate potatoes?\n@@@ Yes, marinating potatoes can significantly enhance their flavor. A brine or marinade allows the seasonings to penetrate the flesh of the potatoes, resulting in a more flavorful dish.\n\n### What potatoes are best for roasting?\n@@@ For roasting, Russet Potatoes are excellent as they get crispy on the outside and fluffy inside. Yukon Gold Potatoes are also good for roasting, offering creamier centers and a richer flavor.\n\n### Can I use dried lemon zest instead of fresh lemon juice for Greek-Style Lemon Potatoes?\n@@@ Yes, you can use dried lemon zest as a substitute. It will give a different but still citrusy flavor. However, you might miss the tangy moisture that fresh lemon juice provides.\n\n### How long can I store leftover Greek-Style Lemon Potatoes?\n@@@ Leftover Greek-Style Lemon Potatoes can be stored in the refrigerator for up to 3-4 days. Make sure they’re in an airtight container to maintain freshness.\n\n### Is it necessary to peel the potatoes for this recipe?\n@@@ Peeling is not necessary, especially if you’re using thin-skinned potatoes like Yukon Golds. Keeping the skin on can add texture and nutrients. However, for a more traditional texture, you might prefer to peel them.”,
“task_html”: null,
“created_at”: “2024-04-18T18:50:44.000Z”,
“updated_at”: “2024-04-18T18:50:44.000Z”,
“synced_at”: null,
“last_error_at”: null,
“IMTINDEX”: 2,
“IMTLENGTH”: 3
},
{
“id”: 3,
“recipes_processed_id”: 109,
“task_type”: “ingredients_exp”,
“task_priority”: 0,
“pending”: null,
“need_regenerate”: null,
“task_content”: “- @#@Potatoes#@#: Foundation of the dish, their starchy goodness absorbs the flavors, creating a comforting, hearty base.\n\n- @#@Garlic#@#: Adds a pungent kick, essential for depth and a slight heat, which complements the zesty lemon beautifully.\n\n- @#@Olive Oil#@#: Provides richness, helps crisp up the potatoes, and carries the oregano and lemon flavors throughout the dish.\n\n- @#@Chicken or Vegetable Broth#@#: Adds moisture and a savory note, ensuring the potatoes don’t dry out while baking.\n\n- @#@Lemon Juice#@#: Brings a bright, acidic contrast to the earthy potatoes, giving the dish its signature Greek zing.\n\n- @#@Dried Oregano#@#: Offers a hint of Mediterranean herbaceousness, which is classic in Greek cuisine and pairs well with lemon.”,
“task_html”: null,
“created_at”: “2024-04-18T18:50:01.000Z”,
“updated_at”: “2024-04-18T18:50:01.000Z”,
“synced_at”: null,
“last_error_at”: null,
“IMTINDEX”: 3,
“IMTLENGTH”: 3
}
]