Skip to content

Confusion About Integer String Keys #7

@kylebrandt

Description

@kylebrandt

I've read the following multiple times and I still don't get it.

"""
For simplicity, integer keys (ie, {"0": "zero"}) are inaccessible by jsonq as integer strings are assumed to be array indexes.
"""

How can I access the string "Foo" in the following JSON response with jsonq?

{
  "534" : {
    "aliases" : {
      "Foo" : { }
    }
  }
}

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