Skip to content

Export a clean array#103

Merged
franzliedke merged 1 commit into
franzliedke:masterfrom
apfelbox:clean-array
Jul 14, 2020
Merged

Export a clean array#103
franzliedke merged 1 commit into
franzliedke:masterfrom
apfelbox:clean-array

Conversation

@apfelbox

@apfelbox apfelbox commented Jun 4, 2020

Copy link
Copy Markdown
Collaborator

array_unique preserves keys:

2020-06-04 at 11 16

When serializing this will be exported as an indexed array in JSON:
2020-06-04 at 11 13

This fix will prevent this, as it will reindex the array (and therefor it can be serialized as a simple array):
2020-06-04 at 11 17

I also modified the existing test, that this is covered with the test case.

@franzliedke franzliedke merged commit ec8e631 into franzliedke:master Jul 14, 2020
@franzliedke

Copy link
Copy Markdown
Owner

Thank you very much!

@apfelbox apfelbox deleted the clean-array branch July 14, 2020 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants