jsonpath - JSON-Patch 'remove' with empty path - What is the official, standard outcome? -


what standard outcome of following 'remove' json patch empty "" path?

[{ "op": "remove", "path": ""}] 

should clear whole object, equal assigning {}? in http://jsonpatch.com/ says: to point root of document use empty string pointer. guess 'remove' on root removes whole object, right?

i tried 2 different json patch libraries 2 different results:

what officially accepted, standard outcome of this? checked in rfc json patch (https://tools.ietf.org/html/rfc6902) couldn't find anything.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -