move deserliazing json file to misc module