Goal Corriger les erreurs de formatage dans une réponse contenant un JSON mal structuré…
- User
Goal Corriger les erreurs de formatage dans une réponse contenant un JSON mal structuré afin de rendre le JSON exploitable et valide.
1. Extraire et corriger uniquement la partie JSON de ``````json{ "title": "Falooda", "description": "This classic Indian beverage features delightful layers of flavor and texture, making it a popular choice for iftar or any occasion. It offers a creamy taste, subtly infused with rose, complemented by a generous scoop of ice cream for a refreshing finish. Falooda holds a significant place in both Middle Eastern and Indian cultures, enjoyed from the villages of the subcontinent to homes in the UK. Its vibrant pink hue makes it as visually appealing as it is delicious.", "subtitle": "", "ingredients": [ { "section": "For the recipe", "ingredients": [ "½ teaspoon basil seeds (tukmaria)", "100ml water", "500ml full-fat milk", "2 tablespoons sugar", "2 tablespoons double cream", "½ teaspoon ground cardamom", "2 tablespoons rose syrup, plus extra to", "2 tablespoons falooda vermicelli, soaked in water to soften", "2 scoops of vanilla ice cream", "1 teaspoon chopped pistachios and almonds" ] }, { "section": "FALOODA JELLY", "ingredients": [ "125ml water "1 teaspoon falooda powder", "1-2 drops of pink food colouring" ] } ], "instructions": [ "To prepare the falooda jelly, combine the water, falooda powder, and pink food colouring in a small saucepan over medium heat and bring to a boil.", "Pour the mixture into a heatproof dish and allow it to set until firm.", "Soak the basil seeds in water for 30 minutes until they swell and become gel-like.", "Drain the basil seeds using a tea strainer to remove excess water and set them aside.", "In a large saucepan over medium heat, bring the milk to a boil.", "Add the sugar and continue boiling for 1 minute, stirring constantly to prevent the milk from sticking or burning.", "Once boiled, let the milk cool, then chill it in the fridge for 1 hour.", "Whisk the double cream and ground cardamom into the chilled milk until combined.", "Grate the set falooda jelly using a coarse grater.", "Divide the rose syrup between two tall glasses, then add the soaked vermicelli and basil seeds.", "Pour the milk mixture into the glasses, which will tint the drink a subtle pink.", "Add 1 tablespoon of grated falooda jelly to each glass, top with a scoop of ice cream and sprinkle with chopped nuts. Drizzle a little extra rose syrup on top for decoration." ], "notes_ingredients": null, "notes_instructions": "Rose syrup can be quite sweet, so adjust the amount of sugar added to the milk according to your preference. If you're short on time, boiling the milk is optional; however, it enhances the falooda's richness and creaminess." }
2. S'assurer que la syntaxe JSON est strictement valide. 3. Ne pas modifier les valeurs, seulement le format si nécessaire. Return Format Tu dois renvoyer un JSON strictement valide. - Respecte la structure originale du JSON (pas d'ajout, suppression ou modification des données). - Corrige les erreurs de formatage éventuelles (guillemets manquants, virgules, accolades, etc.). Warnings - Ne modifie pas le contenu des valeurs, seulement le format si nécessaire. - Ne renvoie que le JSON corrigé, sans explication. - Assure-toi que le JSON est bien formatté et exploitable. Context Dump Données à corriger : ``````json { "title": "Falooda", "description": "This classic Indian beverage features delightful layers of flavor and texture, making it a popular choice for iftar or any occasion. It offers a creamy taste, subtly infused with rose, complemented by a generous scoop of ice cream for a refreshing finish. Falooda holds a significant place in both Middle Eastern and Indian cultures, enjoyed from the villages of the subcontinent to homes in the UK. Its vibrant pink hue makes it as visually appealing as it is delicious.", "subtitle": "", "ingredients": [ { "section": "For the recipe", "ingredients": [ "½ teaspoon basil seeds (tukmaria)", "100ml water", "500ml full-fat milk", "2 tablespoons sugar", "2 tablespoons double cream", "½ teaspoon ground cardamom", "2 tablespoons rose syrup, plus extra to", "2 tablespoons falooda vermicelli, soaked in water to soften", "2 scoops of vanilla ice cream", "1 teaspoon chopped pistachios and almonds" ] }, { "section": "FALOODA JELLY", "ingredients": [ "125ml water "1 teaspoon falooda powder", "1-2 drops of pink food colouring" ] } ], "instructions": [ "To prepare the falooda jelly, combine the water, falooda powder, and pink food colouring in a small saucepan over medium heat and bring to a boil.", "Pour the mixture into a heatproof dish and allow it to set until firm.", "Soak the basil seeds in water for 30 minutes until they swell and become gel-like.", "Drain the basil seeds using a tea strainer to remove excess water and set them aside.", "In a large saucepan over medium heat, bring the milk to a boil.", "Add the sugar and continue boiling for 1 minute, stirring constantly to prevent the milk from sticking or burning.", "Once boiled, let the milk cool, then chill it in the fridge for 1 hour.", "Whisk the double cream and ground cardamom into the chilled milk until combined.", "Grate the set falooda jelly using a coarse grater.", "Divide the rose syrup between two tall glasses, then add the soaked vermicelli and basil seeds.", "Pour the milk mixture into the glasses, which will tint the drink a subtle pink.", "Add 1 tablespoon of grated falooda jelly to each glass, top with a scoop of ice cream and sprinkle with chopped nuts. Drizzle a little extra rose syrup on top for decoration." ], "notes_ingredients": null, "notes_instructions": "Rose syrup can be quite sweet, so adjust the amount of sugar added to the milk according to your preference. If you're short on time, boiling the milk is optional; however, it enhances the falooda's richness and creaminess." } - Assistant