Fix serialization to dictionaries

This commit is contained in:
Eric NGUYEN 2022-10-12 16:35:56 +02:00
parent 343b2fb560
commit 147c02bdfd
3 changed files with 25 additions and 1 deletions

View file

@ -63,6 +63,14 @@ function GetCircularReplacerKeepDataStructure()
return; return;
} }
if (key === 'containers') {
return Object.fromEntries(value);
}
if (key === 'symbols') {
return Object.fromEntries(value);
}
return value; return value;
}; };
} }

View file

@ -33,6 +33,14 @@ function GetCircularReplacerKeepDataStructure()
return; return;
} }
if (key === 'containers') {
return Object.fromEntries(value);
}
if (key === 'symbols') {
return Object.fromEntries(value);
}
return value; return value;
}; };
} }

View file

@ -83,6 +83,14 @@ export function GetCircularReplacerKeepDataStructure(): (key: any, value: object
return; return;
} }
if (key === 'containers') {
return Object.fromEntries(value as Map<string, any>);
}
if (key === 'symbols') {
return Object.fromEntries((value as Map<string, any>));
}
return value; return value;
}; };
} }