to nuon for formats> to nuon {flags} 
--raw, -r: remove all of the whitespace (default behaviour and overwrites -i and -t)--indent, -i {number}: specify indentation width--tabs, -t {number}: specify indentation tab quantity| input | output | 
|---|---|
| any | string | 
Outputs a NUON string representing the contents of this list, compact by default
> [123] |to nuon
[1, 2, 3]
Outputs a NUON array of integers, with pretty indentation
> [123] |to nuon--indent2
[
1,
2,
3
]
Overwrite any set option with --raw
> [123] |to nuon--indent2--raw
[1, 2, 3]
A more complex record with multiple data types
> {date:2000-01-01, data: [1 [23] 4.56]} |to nuon--indent2
{
date:2000-01-01T00:00:00+00:00,
data: [
1,
    [
2,
3
    ],
4.56
  ]
}
    Copyright © 2019–2023 The Nushell Project DevelopersLicensed under the MIT License.
    https://www.nushell.sh/commands/docs/to_nuon.html