see http://www.antlr.org/download.html to install antlr
See https://github.com/antlr/antlr4/blob/master/doc/javascript-target.md for details of how to build the lexer and parser for javascript.
run antlr4 -Dlanguage=JavaScript JSON.g4 -visitor -listener