json icon indicating copy to clipboard operation
json copied to clipboard

Function to get the outer Location for a JsonPath

Open ivangsa opened this issue 3 years ago • 0 comments

User story.

As a developer, I can get the outer Location for a JsonPath, so that I can copy to clipboard, delete it or insert as a sibling.

Is your feature request related to a problem?

getLocationForJsonPath gives the inner boundaries of a JsonPath so is great to update json content, but not so much for deleting o inserting into a json file (without editing unnecesary portions of text).

Calculate the outter location in the yml version of this library is somehow easy but not in the json version.

Describe the solution you'd like

Maybe a new function getOuterLocationForJsonPath

Additional context

Add any other context or screenshots about the feature request here.

ivangsa avatar Aug 04 '21 06:08 ivangsa