Json output format done. No modularization.