Skip to content

Array Object "Expansion" - Add Deep-CSV Conversion for Objects in Arrays #103

New issue

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

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

Already on GitHub? # to your account

Merged
merged 3 commits into from
Jan 28, 2019

Conversation

mrodrig
Copy link
Owner

@mrodrig mrodrig commented Jan 28, 2019

Background Information

I have...

  • added at least one test to verify the failure condition is fixed.
  • verified the tests are passing.

Example:

{
  "id": "123",
  "list": [
    {"a": "a"},
    {"b": "b"}
  ]
}

becomes...

id,list.a,list.b
123,a,b

when using the {expandArrayObjects: true} option.

Previously the default behavior was returning:

id,list
123,[{a:'a'},{b:'b'}]

* Allow for objects appearing in array values to be expanded and deep-converted to CSV.

Release: 3.2.0
* Fixes handling with duplicate key issue using the new option in the deeks module (from mrodrig/deeks#6).

Adds functionality for #102.

Release 3.2.0
@mrodrig mrodrig added this to the 3.2.0 milestone Jan 28, 2019
@mrodrig mrodrig self-assigned this Jan 28, 2019
@mrodrig mrodrig merged commit a5ccef3 into master Jan 28, 2019
@mrodrig mrodrig deleted the array-object-expansion branch January 28, 2019 14:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant