github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/commands/pretty.md (about)

     1  # `pretty`
     2  
     3  > Prettifies JSON to make it human readable
     4  
     5  ## Description
     6  
     7  Takes JSON from the STDIN and reformats it to make it human readable, then
     8  outputs that to STDOUT.
     9  
    10  ## Usage
    11  
    12  ```
    13  <stdin> -> pretty -> <stdout>
    14  ```
    15  
    16  ## Examples
    17  
    18  ```
    19  ยป tout json {"Array":[1,2,3],"Map":{"String": "Foobar","Number":123.456}} -> pretty 
    20  {
    21      "Array": [
    22          1,
    23          2,
    24          3
    25      ],
    26      "Map": {
    27          "String": "Foobar",
    28          "Number": 123.456
    29      }
    30  }
    31  ```
    32  
    33  ## See Also
    34  
    35  * [`format`](../commands/format.md):
    36    Reformat one data-type into another data-type
    37  * [`out`](../commands/out.md):
    38    Print a string to the STDOUT with a trailing new line character
    39  * [`tout`](../commands/tout.md):
    40    Print a string to the STDOUT and set it's data-type
    41  
    42  <hr/>
    43  
    44  This document was generated from [builtins/core/pretty/pretty_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/pretty/pretty_doc.yaml).