Folding
It's possible fold arrays and dictionaries at a certain depth level, which is useful when outputting large data in the terminal.
This feature modifies the data so it should only be used for display purposes.
Use the --level | -l
option to fold the data. The value is the level at which the group values should be folded.
scout read -i People.json -f json -l 2
should output:
{
"people" : {
"Tom" : {
"hobbies" : [...],
"age" : 68,
"height" : 175
},
"Robert" : {
"running_records" : [...],
"hobbies" : [...],
"age" : 23,
"height" : 181
},
"Suzanne" : {
"job" : "actress",
"movies" : [...]
}
}
}