Skip to content

showLeafAraryIndexes: false doesn't work as expected #10

@ioev

Description

@ioev

It seems this option removes all array indexes, not only in leaf nodes. For example:
serialize({ array: [1, 2], nested: [{ key: 1 }, { key: 2 }]}, { showLeafArrayIndexes: false })

Generates:

array[]: 1
array[]: 2
nested[][key]: 1
nested[][key]: 2

But I would have expected:

array[]: 1
array[]: 2
nested[0][key]: 1
nested[1][key]: 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions