recursively serialize metainfo