diff --git a/helpers/ExerciceHelper.ts b/helpers/ExerciceHelper.ts index 334edbc672354ce67912c7986d1870d2b0a25fa2..a51f1134709855301237f1e10610135345cc04a1 100644 --- a/helpers/ExerciceHelper.ts +++ b/helpers/ExerciceHelper.ts @@ -1,7 +1,7 @@ import Ajv, { ErrorObject, JTDSchemaType } from 'ajv/dist/jtd'; import fs from 'fs'; import ExerciceResultsFile from '../types/Dojo/ExerciceResultsFile'; -import hjson from 'hjson'; +import JSON5 from 'json5'; class ExerciceHelper { @@ -34,7 +34,7 @@ class ExerciceHelper { const validator = ajv.compile(schema); - const results = hjson.parse(fs.readFileSync(resultsFilePath, 'utf8')); + const results = JSON5.parse(fs.readFileSync(resultsFilePath, 'utf8')); const isValid = validator(results); return {