replacing re parser with json ast file