JSON Parse Test

This demonstrates how quoted keys and unquoted keys are treated differently under Mozilla's JSON parser, one works, the other is deemed a syntax error.

HTML

<div><ul id="output"></ul></div>

CSS

body {
    background-color: #AAA;
    
}
pre {
    border: 1px solid #999;
    padding: 2px;
    background-color: #FFF;
    box-shadow: 5px 5px 4px #666;
}

li {
    list-style: disc;
    margin: 2px;
    padding: 2px;
}
ul {
    margin: 5px;
}

JavaScript

{"address": "a1/main.c", "identifiers": ["getInstruction", "constructReaderHead", "Takes", "tapeCell", "executes", "FILE", "programStateMachine", "previous", "strtol", "typedef", "struct", "programReaderHead", "to", "moveHeadRight", "input", "writeInstruction", "return", "read", "fclose", "void", "BLANK", "parseFile", "not", "moveHeadLeft", "instructions", "constructStateMachine", "found", "colIndex", "Tape", "fgets", "readerHead", "sizeof", "matching", "index", "for", "endState", "TapeCell", "filename", "cell", "exit", "reader", "constructInstruction", "writeToCell", "numLine", "argv", "readChar", "argc", "by", "column", "of", "Parses", "s", "strcpy", "activeState", "readTapeLoop", "nFinal", "stateMachine", "into", "Initial", "instructionTable", "printf", "table", "fopen", "currentCell", "from", "StateMachine", "headChar", "next", "returns", "constructTapeCell", "ReaderHead", "readInstruction", "head", "Instruction", "else", "R", "Error", "line", "headDirection", "Content", "main", "headInstruction", "instruction", "tapeContent", "up", "value", "n", "startState", "while", "r", "executionLoop", "and", "malloc", "int", "direction", "char", "printTapeContents", "file", "in", "NULL", "if", "end", "inputChar", "readFile", "machine", "newCell", "writeChar", "turing", "numStates", "moving", "data", "execInstruction", "i", "nextState", "Contents", "the", "starting"], "file info": "249 csc344/a1/main.c"}