Skip to content

Adding issue #11

@younus2019

Description

@younus2019

Adding new values to existing list is not supported.

E.g.
jsonText := { "name":["younus","fami","zayan"], "occupation": { "title" : "King", } }

if I try to add new value using

    var jsonDocument map[string]interface{}
json.Unmarshal([]byte(jsonText), &jsonDocument)
     pointerString := "/name/3"
pointer, _ :=gojsonpointer.NewJsonPointer(pointerString)
  //SET a new value for the "name" in the document
pointer.Set(jsonDocument, "Aryan")

Its not adding. Please support this feature.

Are you supporting only update a value from a JSON document?

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