JsonDocumentPath icon indicating copy to clipboard operation
JsonDocumentPath copied to clipboard

How about return key and value after select?

Open yufeiqi opened this issue 3 years ago • 0 comments

Hi

var jsonPath = "$.my.path"; var jsonDoc = JsonDocument.Parse(json); var element = jsonDoc.SelectElement(jsonPath); //returns JsonElement var elements = jsonDoc.SelectElements(jsonPath); //returns JsonElement.ArrayEnumerator

the elements only contain value, like ["hello", "good"], [0, 1, 2].

if I want to update some property/values in the JSON body with string.replace, it's better to return the key and value. So I want to make an extension in a PR, but I can't submit the PR due to the permission issue.

Could you grant the permission to the user "[email protected]"? (then I can submit the commit and PR).

Thanks Phil Yu

yufeiqi avatar Apr 27 '22 09:04 yufeiqi