flipkart-incubator / zjsonpatch

This is an implementation of RFC 6902 JSON Patch written in Java
Apache License 2.0
523 stars 148 forks source link

Maybe it's already discussed, but anyone think of how to patch array member in a more flexible approach? #139

Open aerofish opened 2 years ago

aerofish commented 2 years ago

Expected Behavior

When manipulate the array, select a member of array by a given key.

Actual Behavior

In the RFC 6902, it's define the to select a member of array with index. But it's really not convenient due to it's related to the sorting. When multiple operations work on the same array, the final order of the array members become unpredictable. Is there anybody solve this issue?

Steps to Reproduce the Problem

Specifications

RFC 6902 Library Version:
Language (e.g. Java 1.8, Scala, etc):