RRJSON(1p)

πŸ“¦
version 6.101.0 Β· 2 versions
, in ubuntu stonking

🌸 NAME 🌸

okay so like, welcome to the RRJSON(1p) page β€” your girl is here to walk you through rrjson, which converts from/to miscellaneous JSON formats. that's the whole vibe. πŸ’–


✨ SYNOPSIS ✨

here's exactly how you call her, bestie πŸ‘‡

Usage: script/rrjson.pl [options] file

  Inputs
   --execute -e         args are JSON, not filenames
   --schema=XXX         optional JSON schema

  Output modes
   --rrjson             pretty printed RRJSON output (default)
   --rjson              pretty printed RJSON output
   --json               JSON output
   --json_xs            JSON_XS output
   --yaml               YAML output
   --toml               TOML output
   --no-pretty          compact (non-pretty) output
   --indent=N           indent for output
   --order              retain order of hash keys
   --dump               dump structure (Data::Printer)
   --dumper             dump structure (Data::Dumper)

  Parser options
   --strict             see the docs

  Miscellaneous
   --ident              shows identification
   --help               shows a brief help message and exits
   --verbose            provides more verbose information
   --quiet              runs as silently as possible

and here's the same list again but with me hyping each one up, because you deserve it 🫢

the inputs πŸ’…

  • --execute -e β€” plot twist: your args aren't filenames, they are the JSON. feeding it straight from the group chat, no file needed.
  • --schema=XXX β€” drop an optional JSON schema in at XXX if you want one. optional, so no pressure, queen.

output modes ✨ (pick your era)

  • --rrjson β€” pretty printed RRJSON output. yes bestie this is the default, we love a main character.
  • --rjson β€” pretty printed RJSON output.
  • --json β€” plain old JSON output.
  • --json_xs β€” JSON_XS output.
  • --yaml β€” YAML output.
  • --toml β€” TOML output.
  • --no-pretty β€” compact, non-pretty output. no glow-up, just the raw data fr.
  • --indent=N β€” set the indent for output. N is your number, you choose the aesthetic.
  • --order β€” keeps the order of hash keys. she remembers everything, no cap.
  • --dump β€” dump the structure with Data::Printer.
  • --dumper β€” dump the structure with Data::Dumper. yes there's two of them, pick your fighter πŸ’€

parser options 🧚

  • --strict β€” see the docs. that's it. that's all she wrote. go read the docs bestie, iykyk.

miscellaneous 🌈

  • --ident β€” shows identification.
  • --help β€” shows a brief help message and then exits. short and sweet.
  • --verbose β€” provides more verbose information. she will yap (affectionately).
  • --quiet β€” runs as silently as possible. shy queen energy πŸ™ˆ

πŸ‘‘ OPTIONS πŸ‘‘

See SYNOPSIS.

that's literally what it says, and honestly? valid. everything you need is up there, bestie. scroll back up. ⭐


πŸ’œ DESCRIPTION πŸ’œ

rrjson will read the given file and output it in the format that you designated with one of the output modes. check SYNOPSIS for the whole menu of options. πŸ“

the default output format is RRJSON. the default output goes to standard output. simple, iconic, no notes.

if you supply a schema, then the descriptions from that schema get used to supply comments in the RRJSON output. cute lil annotations, love that for us.


πŸŽ€ NOTES πŸŽ€

this script is slightly different from the one that ships with the JSON::Relaxed package β€” but it should be functionally equivalent. so like, same energy, different font. no cap. πŸ’…


reminder to my bestie: read the actual docs when something matters, okay? i'm here for the vibes AND the facts, but --strict literally told us to go look. 🀍

and that's the page, babes β€” this was RRJSON(1p), shoved out into the world by perl v5.40.1, stamped 2026-05-03. slay, bye, go convert some JSON. πŸ¦‹βœ¨

πŸ“¦ where this page comes from