Change format

I want to Improve module IF and output json format.