All Projects → flo-l → jsonpp-rs

flo-l / jsonpp-rs

Licence: GPL-3.0 license
UNIX style tool to pretty print json

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to jsonpp-rs

Prettier Package Json
Prettier formatter for package.json files
Stars: ✭ 86 (+230.77%)
Mutual labels:  pretty-print
Phpunit Pretty Print
✅  Make your PHPUnit output beautiful
Stars: ✭ 149 (+473.08%)
Mutual labels:  pretty-print
tabled
An easy to use library for pretty print tables of Rust structs and enums.
Stars: ✭ 1,337 (+5042.31%)
Mutual labels:  pretty-print
Webpack Format Messages
Beautiful formatting for Webpack messages; ported from Create React App!
Stars: ✭ 103 (+296.15%)
Mutual labels:  pretty-print
Ololog
A better console.log for the log-driven debugging junkies
Stars: ✭ 141 (+442.31%)
Mutual labels:  pretty-print
Treeify
Pretty-print a javascript object as a tree
Stars: ✭ 174 (+569.23%)
Mutual labels:  pretty-print
Httpony
🐴 An HTTP request listener and pretty printer
Stars: ✭ 53 (+103.85%)
Mutual labels:  pretty-print
tv
📺(tv) Tidy Viewer is a cross-platform CLI csv pretty printer that uses column styling to maximize viewer enjoyment.
Stars: ✭ 1,763 (+6680.77%)
Mutual labels:  pretty-print
Binpp
🔢 Erlang Binary Pretty Printer
Stars: ✭ 148 (+469.23%)
Mutual labels:  pretty-print
Webpack Messages
Beautifully format Webpack messages throughout your bundle lifecycle(s)!
Stars: ✭ 238 (+815.38%)
Mutual labels:  pretty-print
Pretty Yaml
PyYAML-based module to produce pretty and readable YAML-serialized data
Stars: ✭ 110 (+323.08%)
Mutual labels:  pretty-print
Ast Pretty Print
A pretty printer for AST-like structures
Stars: ✭ 129 (+396.15%)
Mutual labels:  pretty-print
Pretty Simple
pretty-printer for Haskell data types that have a Show instance
Stars: ✭ 183 (+603.85%)
Mutual labels:  pretty-print
Astpretty
Pretty print the output of python stdlib `ast.parse`.
Stars: ✭ 93 (+257.69%)
Mutual labels:  pretty-print
as-table
A simple function that prints objects as ASCII tables. Supports ANSI styling and weird Unicode 💩 emojis – they won't break the layout.
Stars: ✭ 54 (+107.69%)
Mutual labels:  pretty-print
Colorjson
Fast Color JSON Marshaller + Pretty Printer for Golang
Stars: ✭ 71 (+173.08%)
Mutual labels:  pretty-print
Paiges
an implementation of Wadler's a prettier printer
Stars: ✭ 153 (+488.46%)
Mutual labels:  pretty-print
hgrep
Grep with human-friendly search results
Stars: ✭ 335 (+1188.46%)
Mutual labels:  pretty-print
table2ascii
Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord
Stars: ✭ 31 (+19.23%)
Mutual labels:  pretty-print
Doctorpretty
Wadler's "A prettier printer" embedded pretty-printer DSL for Swift
Stars: ✭ 186 (+615.38%)
Mutual labels:  pretty-print

jsonpp

JSON pretty print.

This program pretty prints JSON. It supports customization of output.

Installation

cargo install jsonpp

Examples

% curl https://gist.githubusercontent.com/flo-l/be7177f7f29a3b1299d95f9a5b211019/raw/901b633f1f06f9cfb133143964ba874b03167b01/ugly.json | jsonpp > pretty.json
% cat ugly.json | jsonpp > pretty.json
% jsonpp ugly.json > pretty.json

ugly.json

{"widget":{"debug":"on","window":{"title":"Sample Konfabulator Widget","name":"main_window","width":500,"height":500},"image":{"src":"Images/Sun.png","name":"sun1","hOffset":250,"vOffset":250,"alignment":"center"},"text":{"data":"Click Here","size":36,"style":"bold","name":"text1","hOffset":250,"vOffset":100,"alignment":"center","onMouseUp":"sun1.opacity = (sun1.opacity / 100) * 90;"}}}

pretty.json

{
  "widget": {
    "debug": "on",
    "image": {
      "alignment": "center",
      "hOffset": 250,
      "name": "sun1",
      "src": "Images/Sun.png",
      "vOffset": 250
    },
    "text": {
      "alignment": "center",
      "data": "Click Here",
      "hOffset": 250,
      "name": "text1",
      "onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;",
      "size": 36,
      "style": "bold",
      "vOffset": 100
    },
    "window": {
      "height": 500,
      "name": "main_window",
      "title": "Sample Konfabulator Widget",
      "width": 500
    }
  }
}

License

See LICENSE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].