Skip to content

How about return key and value after select?  #3

@yufeiqi

Description

@yufeiqi

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 "icelenix@163.com"? (then I can submit the commit and PR).

Thanks
Phil Yu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions