Skip to content

getting property names as data #22

@chrisdew

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"
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions