Skip to content
jc-rs
GitHub

free

--freev1.0.0

Converts `free` command output to JSON

Linuxcommandslurpable
$ free | jc-rs --free

A real pair

From the reference corpus (centos-7.7/free.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

freecentos-7.7
              total        used        free      shared  buff/cache   available
Mem:        3861332      222820     3364176       11832      274336     3389588
Swap:       2097148           0     2097148
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "type": "Mem",
    "total": 3861332,
    "used": 222820,
    "free": 3364176,
    "shared": 11832,
    "buff_cache": 274336,
    "available": 3389588
  },
  {
    "type": "Swap",
    "total": 2097148,
    "used": 0,
    "free": 2097148
  }
]

Fixture coverage

6/6oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs freejc-rs runs the command itself and parses what it prints. Recognised for: `free`

Source: crates/jc-rs-parsers/src/system/free.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare