PMJSON(1)
π PMJSON(1) β the Performance Co-Pilot JSON dumping utility, bestie edition π
okay so. this is pmjson, from the General Commands Manual section of the PCP docs. it's a whole vibe. let's go π¦
β¨ NAME β¨
pmjson β Performance Co-Pilot JSON dumping utility
π SYNOPSIS π
pmjson [-mnpqyV?] [-D debug] [-i infile] [-o outfile]
πΈ DESCRIPTION πΈ
so pmjson is your girl for manipulating JSON (JavaScript Object Notation) formatted text, the kind used all over the Performance Co-Pilot (PCP) toolkit. π«Ά
feed her some valid JSON input and she'll hand you back output β either the minimal kind or the human readable kind. your choice, bestie. π
π OPTIONS π
the available command line options are:
-iinfile,--in=infile β JSON formatted input infile: the path to a file you want the input read from. if you skip this option entirely,pmjsonwill read from the standard input stream instead. no file? no problem. π-m,--minimalβ produce JSON output with all the superfluous whitespace removed from the resulting JSON string. stripped. naked. clean. β¨-ooutfile,--out=outfile β the formatted output gets written to the named outfile. omit it andpmjsonwrites to the standard output stream. easy. π¦-n,--not-prettyβ produce JSON output in raw, monochromatic format. this is the default if output is being sent to a file. it's giving plain but make it on purpose. π-p,--prettyβ produce JSON output in a human-friendly format. this is the default if output is on a terminal. main character formatting, honestly. π-q,--quietβ verify the input as valid JSON only, no output is produced. just a vibe check on your JSON. did it pass? that's between you and your exit code. π-V,--versionβ display version number and exit. iconic. β-y,--yamlβ produce YAML-like output, a human-readable format with less syntactic sugar than JSON. yes queen, less sugar but still sweet. π-?,--helpβ display usage message and exit. when in doubt, ask her. π§
π PCP ENVIRONMENT π
environment variables with the prefix PCP_ are used to parameterize the file and directory names used by PCP. π«Ά
on each installation, the file /etc/pcp.conf contains the local values for these variables.
the $PCP_CONF variable may be used to specify an alternative configuration file, as described in pcp.conf(5).
π₯ DEBUGGING OPTIONS π₯
the -D or --debug option enables the output of additional diagnostics on stderr to help triage problems β although ngl, the information is sometimes cryptic and primarily intended to provide guidance for developers rather than for end-users. π
debug is a comma separated list of debugging options; use pmdbg(1) with the -l option to obtain a list of the available debugging options and their meaning.
π SEE ALSO π
PMWEBAPI(3), pcp.conf(5) and pcp.env(5).
and that's the whole page, bestie!! π this one came out of the Performance Co-Pilot crew over at PCP, and it's dated right there in the footer with the rest of the PMJSON(1) energy. go forth and format your JSON. periodt. π
β¨π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu stonking: pcp 7.2.1-2build1
- Copyright (c) 2018,2025 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms