Skip to content

Commit

Permalink
Merge pull request #6 from ioull/fixBadJsonResponse
Browse files Browse the repository at this point in the history
Fix #5 : remove array in json response when there is only one value
  • Loading branch information
Salamek authored Mar 14, 2021
2 parents d640610 + 9d8bb2e commit 57ebf09
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 57ebf09

Please sign in to comment.