Skip to content

Commit 937259e

Browse files
authored
Revert full JSON round trip for arrays (#7844)
1 parent bd24a4e commit 937259e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

source/nodejs/adaptivecards/src/serialization.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,9 +291,7 @@ export abstract class BaseSerializationContext {
291291

292292
if (items.length === 0) {
293293
if (target.hasOwnProperty(propertyName) && Array.isArray(target[propertyName])) {
294-
if (!GlobalSettings.enableFullJsonRoundTrip) {
295-
delete target[propertyName];
296-
}
294+
delete target[propertyName];
297295
}
298296
} else {
299297
this.serializeValue(target, propertyName, items);

0 commit comments

Comments
 (0)