Keep values structured
Filter and project directory records, then make the conversion to external JSON bytes explicit.
- Snapshot
- v0.2.0
- Source path
components/flash/examples/structured-files.fsh- Tree
c41b976e0362
# Keep directory data structured, then serialize it explicitly for script output.
ls \
| where {|entry| $entry.type == "file"} \
| get name \
| each {|name| "$name"} \
| sort \
| collect \
| to json \
| ^cat