Skip to content

Add ArrayNode#set(int index, primitive_type value) #3154

Closed
@TarekkMA

Description

@TarekkMA

Is your feature request related to a problem? Please describe.
Currently, we could add/insert values to ArrayNode instance. but the set method only accepts JsonNode instance.

Describe the solution you'd like
It would be nice if we have set methods like add/insert

Usage example

ArrayNode arr = getNewArrayNode();
arr.add("a");
arr.insert(0, "b");
arr.set(0, "c");        // <------- Missing

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions