chanced / jsonptr

JSON Pointer (RFC 6901) implementation for Rust
Apache License 2.0
44 stars 4 forks source link

How does delete work? #18

Closed JewishLewish closed 10 months ago

JewishLewish commented 10 months ago

Ex.

{
  "Example": 21,
  "test": "test"
}

I been trying to write code to manipulate json files for a project and for some reason it won't let me delete "/Example"

I tried using the code that is shown in the examples but they don't work and always return None.

chanced commented 10 months ago

That seems to be a bug, looking into it now.

chanced commented 10 months ago

The issue stemmed from pop_back not properly handling the case where it was the last token. I'm sorry about that! v0.4.4 has been cut and should fix the issue.

chanced commented 10 months ago

Also, thanks for reporting it!