Skip to content

Retrieve all keys #212

Open
Open
@yassinebenarbia

Description

@yassinebenarbia

Is it possible to have a way of retrieving all keys and or values under some defined level, as for example
{ "Name": "X" "PN": 12345678, "House": { "Address": "some address", "Size" : "some Size", "Rooms": 5, }, }
here using the desired method on level 1 will give a list of all keys, which is ' ["Name", "PN", "House"]'
and on level 2 will give ["Address", "Size", "Rooms"], Note that it's possible to implement the same behavior on values pairs.

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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yassinebenarbia

        Issue actions

          Retrieve all keys · Issue #212 · maciejhirsz/json-rust