Skip to content

Commit

Permalink
Fix #5 : remove array in json response when there is only one value
Browse files Browse the repository at this point in the history
  • Loading branch information
ioull committed Mar 12, 2021
1 parent 50bb9d3 commit 9d8bb2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class Connection {
return {}
}

const parser = new Parser();
const parser = new Parser({explicitArray : false});

try {
return await parser.parseStringPromise(xml)
Expand Down Expand Up @@ -283,4 +283,4 @@ export class Connection {
formData
);
}
}
}

0 comments on commit 9d8bb2e

Please sign in to comment.