add json dumping for developing