write json to md, generate html