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.
code1. Extraire et corriger uniquement la partie JSON de [[ { "recipeCode": "b325fd38cde6430e8d616d049a46f7ce", "updated": "2025-05-06T19:59:39.464Z", "title": "روغاي البرغل", "subtitle": "البرغل هو الباذنجان.", "description": "", "ingredients": [ { "section": "للوصفة", "ingredients": [ "باذنجان", "خل", "زيت دوار الشمس", "سوق البصل الأخضر", "ملح" ] } ], "instructions": [ "في مقلاة أو قدر قديم، قم بشوي الباذنجان مع التأكد من تحميره جيدًا من جميع الجهات.", "بعد ذلك مباشرة، قم بتقطيعه إلى نصفين بالطول واستخرج اللحم بلطف.", "صب الخل فورًا على اللحم لمنع تغييره لونه إلى الأسود.", "اهرس اللحم باستخدام شوكة حتى تحصل على قوام متجانس.", "أضف بعد ذلك الملح، الزيت، والبصل الأخضر المفروم ناعمًا." ], "notes_ingredients": "", "notes_instructions": "" } ]. 2. S'assurer que la syntaxe JSON est strictement valide. 3. Ne pas modifier les valeurs, seulement le format si nécessaire.
codeReturn 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 : [[ { "recipeCode": "b325fd38cde6430e8d616d049a46f7ce", "updated": "2025-05-06T19:59:39.464Z", "title": "روغاي البرغل", "subtitle": "البرغل هو الباذنجان.", "description": "", "ingredients": [ { "section": "للوصفة", "ingredients": [ "باذنجان", "خل", "زيت دوار الشمس", "سوق البصل الأخضر", "ملح" ] } ], "instructions": [ "في مقلاة أو قدر قديم، قم بشوي الباذنجان مع التأكد من تحميره جيدًا من جميع الجهات.", "بعد ذلك مباشرة، قم بتقطيعه إلى نصفين بالطول واستخرج اللحم بلطف.", "صب الخل فورًا على اللحم لمنع تغييره لونه إلى الأسود.", "اهرس اللحم باستخدام شوكة حتى تحصل على قوام متجانس.", "أضف بعد ذلك الملح، الزيت، والبصل الأخضر المفروم ناعمًا." ], "notes_ingredients": "", "notes_instructions": "" } ]
- Assistantjson
[ [ { "recipeCode": "b325fd38cde6430e8d616d049a46f7ce", "updated": "2025-05-06T19:59:39.464Z", "title": "روغاي البرغل", "subtitle": "البرغل هو الباذنجان.", "description": "", "ingredients": [ { "section": "للوصفة", "ingredients": [ "باذنجان", "خل", "زيت دوار الشمس", "سوق البصل الأخضر", "ملح" ] } ], "instructions": [ "في مقلاة أو قدر قديم، قم بشوي الباذنجان مع التأكد من تحميره جيدًا من جميع الجهات.", "بعد ذلك مباشرة، قم بتقطيعه إلى نصفين بالطول واستخرج اللحم بلطف.", "صب الخل فورًا على اللحم لمنع تغييره لونه إلى الأسود.", "اهرس اللحم باستخدام شوكة حتى تحصل على قوام متجانس.", "أضف بعد ذلك الملح، الزيت، والبصل الأخضر المفروم ناعمًا." ], "notes_ingredients": "", "notes_instructions": "" } ] ]