Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Force Array is defaulted to True #27

Closed
gmoskovicz opened this issue Apr 25, 2016 · 2 comments
Closed

Force Array is defaulted to True #27

gmoskovicz opened this issue Apr 25, 2016 · 2 comments
Labels

Comments

@gmoskovicz
Copy link
Contributor

  • Version: 2.x
  • Operating System: Any
  • Config File (if you have sensitive info, please remove it): Any
  • Sample Data: -
  • Steps to Reproduce:

Parse any Xml and by default string fields are going to be added as arrays instead of plain fields. ForceArray is set to true. It should be set by default to false.

@gmoskovicz
Copy link
Contributor Author

So basically the following:

<foo><bar>Content</bar></foo>

Was being parsed as:

{
  "bar": ["Content"]
}

Now we have a setting to disable this, so Content can be a simple string.

@suyograo
Copy link
Contributor

Fixed in #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants