json generator helper done