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

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -