Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding issue #11

Open
younus2019 opened this issue Feb 14, 2022 · 1 comment
Open

Adding issue #11

younus2019 opened this issue Feb 14, 2022 · 1 comment

Comments

@younus2019
Copy link

younus2019 commented Feb 14, 2022

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?

@ganeshk312
Copy link

this is a much needed functionality. @xeipuuv can this be addedd please?

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

No branches or pull requests

2 participants