Serialize stuff inside collections to JSON.