add support of json to populate_record()