Final fix for Dictionnary serialization
This commit is contained in:
parent
147c02bdfd
commit
846f41829b
7 changed files with 55 additions and 14 deletions
|
@ -64,14 +64,26 @@ function GetCircularReplacerKeepDataStructure()
|
|||
}
|
||||
|
||||
if (key === 'containers') {
|
||||
return Object.fromEntries(value);
|
||||
return [...value.entries()].map((keyPair) => {
|
||||
return {
|
||||
Key: keyPair[0],
|
||||
Value: keyPair[1]
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
if (key === 'symbols') {
|
||||
return Object.fromEntries(value);
|
||||
return [...value.entries()].map((keyPair) => {
|
||||
return {
|
||||
Key: keyPair[0],
|
||||
Value: keyPair[1]
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
return value;
|
||||
if (key === 'linkedContainers') {
|
||||
return Array.from(value);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue