Skip to main content

Module json_schema

Module json_schema 

Source

Functions§

compress
crush_verbatim
Lossless crush of a verbatim data-command’s JSON output (gh api, jq, kubectl get -o json, curl …). Returns Some only when it at least halves the payload, so an opt-in caller reshapes solely when it clearly pays — and never loses a datum. Returns None for non-JSON or low-redundancy output (the caller then keeps it verbatim).