Open suhailSj opened 9 months ago
If admin confirms to this change i will raise a new CR and remove this check from #add method.
@suhailSj I am stucked on this kind of issue already, please check and let me know if you faced this issue or know the solution. https://github.com/json-path/JsonPath/issues/982#issue-2082624079
set/add method evaluates the path and if not present throws the error, ideally this should not be the case. ideally set sets the field on the desired path. In case of nested fields we should be verifying till the parent node only.
This change is breaking the code where we are setting the field in json using set method.
either we should remove if or we should only check till parent element. as this check is defying the functionality of set method. Suggestions please.