You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{ test: false }
[ { test: false } ]
/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:171
throw generateError(state, message);
^
YAMLException: duplicated mapping key at line 3, column 1:
test: false
^
at generateError (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:165:10)
at throwError (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:171:9)
at storeMappingPair (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:308:7)
at readBlockMapping (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:1071:9)
at composeNode (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:1332:12)
at readDocument (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:1492:3)
at loadDocuments (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:1548:5)
at loadAll (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:1556:19)
at Object.safeLoadAll (/Users/adnan/Playground/test-yaml/node_modules/js-yaml/lib/js-yaml/loader.js:1585:12)
at Object.<anonymous> (/Users/adnan/Playground/test-yaml/test.js:15:18)
The text was updated successfully, but these errors were encountered:
safeLoadAll does not seem to respect the
{json: true}
option the same way safeLoad and loadAll do, not sure if this is the case for other options.Example:
Output:
The text was updated successfully, but these errors were encountered: