Engineer in Tokyo

TIL: fx: the JSON/YAML navigator

I have recently been doing more with YAML (you may be able to guess why). I wanted something that would help me with navigating large complicated YAML objects and fx is exactly what I was looking for.

fx can help with viewing JSON or YAML and allows you to collapse and expand sections of the file.

# now it's obvious isn't it
$ kubectl get pods -o json | fx
$ kubectl get pods -o yaml | fx --yaml

The GIF from their website shows what it looks like pretty well.

An animated GIF showing how fx can be used to collapse and expand various parts of a JSON file. The contents of the file are a lorem ipsum article sample with structured data for the author and tags.