Skip to content

How to print sub-items of a key? #152

@BlueFalconHD

Description

@BlueFalconHD

I have a file, assets.json:

{
 "window":{
         "bottom":"_"
 }
}

I tried to cat the file while piping it with JSON:
cat assets.json | json window bottom
which outputs:

{
  "bottom": "_"
}

I want it to just output the value of the key bottom.

Like:
_

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