Properly implement the JSONParserNode based generator and refactor.