Add JSON generation from AST
Generate valid JSON without extra ,
Generate JSON for if/for/while correctly