Skip to content

Enhacement: Add a new option to not show the "_text" option at all #19

Closed
@noveens

Description

@noveens

We can introduce an option to directly show the corresponding XML value instead of showing it under _text.

Eg.
XML:

<key1>value1</key1>
<key2>value2</key2>

COMPACT JS-OBJECT:

{
    key1: {_text: "value1"},
    key2: {_text: "value2"}
}

With the new option:

{
    key1: "value1",
    key2: "value2"
}

For my own usage, I used this recursive workaround for the same, hence thought for the enhancement : https://github.com/noveens/js-owncloud-client/pull/19/files#diff-b9b823e719730e39048dffbb512e743cR777

Thanks.

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