This repository has been archived by the owner on Dec 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* use of a swith instead of if else, faster and more readable * use same initialization pattern for every nodes * remove useless code * according to the rfc6901 the path for array should has a valid position index or '-', this last one means to add to the end of the array * add is not possible without position rfc6901 says that add op is not possible without position index or '-' * add/$push improvments added items must be contiguous, if we add a item in the first position and in the third position, we can't do it in only one $push => throws error add op can't mixe position index and '-', as we don't know the length of the array where the itmes will be pushed, we can't mixed index positions and '-' position (added to end) => throws error * handle the escaped characters in jsonpath ~0 <=> ~ and ~1 <=> / were forgotten no more dependency to jsonpath-to-dot
- Loading branch information
Showing
3 changed files
with
192 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters