Skip to content
Snippets Groups Projects
Commit d54c2ad3 authored by Eliott Sammier's avatar Eliott Sammier
Browse files

Fix JSON syntax errors

- Missing braces level
- Add escape function for JSON strings (beware of the backslashes)
parent 9f4e12af
No related branches found
No related tags found
No related merge requests found
Showing
with 144 additions and 104 deletions
{
"elements": [
{
"name": "pg491",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_dark.png\" id=\"MosImg85\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_dark_faux.png\" id=\"MosImg29\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_dark.png\" id=\"MosImg85\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
}
]
}
{
"elements": [
{
}
]
}
{
"elements": [
{
"name": "pg561",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">bought\n </div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">boat\n </div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep2""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">boat\n </div>"
}
]
}
{
"elements": [
{
"name": "pg576",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV11', 'bt_test.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV21', 'bt_chest.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV11', 'bt_test.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>"
}
]
}
{
"elements": [
{
}
]
}
{
"elements": [
{
"name": "pg6361",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">sink\n </div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">think\n </div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep2""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">think\n </div>"
}
]
}
{
"elements": [
{
"name": "pg699",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">thing\n </div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">thin\n </div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">thing\n </div>"
}
]
}
{
"elements": [
{
"name": "pg758",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">thought\n </div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">though\n </div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep2""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">though\n </div>"
}
]
}
{
"elements": [
{
"name": "pg76",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV35', 'bt_cat.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV96', 'bt_kater.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV35', 'bt_cat.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>"
}
]
}
{
"elements": [
{
"name": "pg7691",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_bring.png\" id=\"MosImg75\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_bring_faux.png\" id=\"MosImg45\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_bring.png\" id=\"MosImg75\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
}
]
}
{
"elements": [
{
}
]
}
{
"elements": [
{
"name": "pg893",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_shine_faux.png\" id=\"MosImg12\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_shine.png\" id=\"MosImg2\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep2""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_shine.png\" id=\"MosImg2\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
}
]
}
{
"elements": [
{
"name": "pg894",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_tearlarme.png\" id=\"MosImg35\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_teardechire.png\" id=\"MosImg72\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_tearlarme.png\" id=\"MosImg35\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
}
]
}
{
"elements": [
{
"name": "pg93",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_woundblesser.png\" id=\"MosImg524\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_woundenroule.png\" id=\"MosImg116\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_woundblesser.png\" id=\"MosImg524\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
}
]
}
{
"elements": [
{
"name": "pg933",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV59', 'bt_grin.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV96', 'bt_green.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep2""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\">\n <script type=\"text/javascript\">ajDocW(PF_clipAV('clipAV96', 'bt_green.swf', '18', '18', 'false', 'Flash', 'false', '', 'Quality:high;wmode:transparent', ''));</script>\n </div>"
}
]
}
{
"elements": [
{
"name": "pg965",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_then.png\" id=\"MosImg96\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_then_faux.png\" id=\"MosImg81\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_then.png\" id=\"MosImg96\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
}
]
}
{
"elements": [
{
"name": "pg98",
"type": "radiogroup",
"choices": [
"<div class="STY_reponseQC" id="lienRep1"",
"<div class="STY_reponseQC" id="lienRep2""
"<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_measure.png\" id=\"MosImg93\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>",
"<div class=\"STY_reponseQC\" id=\"lienRep2\" onmouseover=\"exo.changerBouton(2,true);\" onmouseout=\"exo.changerBouton(2,false);\" onclick=\"exo.action(2)\"><img src=\"../media/phon_measure_faux.png\" id=\"MosImg66\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
],
"correctAnswer": "<div class="STY_reponseQC" id="lienRep1""
"correctAnswer": "<div class=\"STY_reponseQC\" id=\"lienRep1\" onmouseover=\"exo.changerBouton(1,true);\" onmouseout=\"exo.changerBouton(1,false);\" onclick=\"exo.action(1)\"><img src=\"../media/phon_measure.png\" id=\"MosImg93\" border=\"0\" align=\"center\" style=\"visibility:hidden\"></div>"
}
]
}
\ No newline at end of file
{
"elements": [
{
}
]
}
{
"elements": [
{
}
]
}
{
"elements": [
{
}
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment