in src/main.ts [237:248]
function acceptKey(val:string) {
if (state === State.DICT_STATE) {
if (curKey !== null) {
return fail('too many <key>');
}
curKey = val;
} else if (state === State.ARR_STATE) {
return fail('unexpected <key>');
} else { // ROOT_STATE
return fail('unexpected <key>');
}
}