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{ "data": [ "1 tbsp groundnut oil.", "2 spring onions (scallions), sliced.", "2 garlic cloves, crushed.", "6 cm piece of fresh ginger, peeled and finely chopped.", "1 large carrot, peeled and finely shredded.", "40 g tinned water chestnuts, roughly chopped.", "30 g tinned bamboo shoots, roughly chopped.", "6 baby corn cobs, cut into quarters lengthways.", "150 g beansprouts.", "40 g shredded char siu pork (or purchase from a Chinese supermarket).", "40 g cooked chicken, shredded.", "30 g cooked and peeled prawns (shrimp).", "1 tbsp light soy sauce.", "0.5 tsp salt.", "0.25 tsp white pepper.", "0.5 tbsp dark soy sauce.", "1 tsp sesame oil." ]
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 { "data": [ "1 tbsp groundnut oil.", "2 spring onions (scallions), sliced.", "2 garlic cloves, crushed.", "6 cm piece of fresh ginger, peeled and finely chopped.", "1 large carrot, peeled and finely shredded.", "40 g tinned water chestnuts, roughly chopped.", "30 g tinned bamboo shoots, roughly chopped.", "6 baby corn cobs, cut into quarters lengthways.", "150 g beansprouts.", "40 g shredded char siu pork (or purchase from a Chinese supermarket).", "40 g cooked chicken, shredded.", "30 g cooked and peeled prawns (shrimp).", "1 tbsp light soy sauce.", "0.5 tsp salt.", "0.25 tsp white pepper.", "0.5 tbsp dark soy sauce.", "1 tsp sesame oil." ] - Assistant
{ "data": [ "1 tbsp groundnut oil.", "2 spring onions (scallions), sliced.", "2 garlic cloves, crushed.", "6 cm piece of fresh ginger, peeled and finely chopped.", "1 large carrot, peeled and finely shredded.", "40 g tinned water chestnuts, roughly chopped.", "30 g tinned bamboo shoots, roughly chopped.", "6 baby corn cobs, cut into quarters lengthways.", "150 g beansprouts.", "40 g shredded char siu pork (or purchase from a Chinese supermarket).", "40 g cooked chicken, shredded.", "30 g cooked and peeled prawns (shrimp).", "1 tbsp light soy sauce.", "0.5 tsp salt.", "0.25 tsp white pepper.", "0.5 tbsp dark soy sauce.", "1 tsp sesame oil." ] }