fast-xml-parser icon indicating copy to clipboard operation
fast-xml-parser copied to clipboard

fix: get oneListGroup to work as expected for array of strings

Open a-rasin opened this issue 8 months ago • 0 comments

If I have oneListGroup enabled I would expect that:

{
  "a": ["(first)", "second"]
}

Would give me:

<a>(first)(second)</a>

But I get:

<a>
  <a>(first)</a>
  <a>(second)</a>
</a>

This commit fixes that issue.

Type

Please mention the type of PR

  • [X] Bug Fix
  • [ ] Refactoring / Technology upgrade
  • [ ] New Feature

Note : Please ensure that you've read contribution guidelines before raising this PR. If your PR is in progress, please prepend [WIP] in PR title. Your PR will be reviewed when [WIP] will be removed from the PR title.

Bookmark this repository for further updates.

a-rasin avatar Jun 29 '24 08:06 a-rasin