getting property names as data · Issue #22 · JSONPath-Plus/JSONPath · GitHub
Skip to content

getting property names as data #22

Description

@chrisdew

I have some JSON which includeds objects-used-as-dictionaries.

Is it possible to get keys from objects using JSONPath, if you do not know the names of the keys in advance of seeing the data?

e.g. I would like to get the results ["France","Spain"] from a JSONPath quesry on:

{
"capitals":{
"France":"Paris",
"Spain":"Madrid"
}
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions