Skip to content

Latest commit

 

History

History
32 lines (27 loc) · 384 Bytes

README.md

File metadata and controls

32 lines (27 loc) · 384 Bytes

json-elide-strings

Elide too long strings in JSON data

Usage

json-elide-strings [--length=N] [--keys] [--suffix=ELLIPSIS] [FILE]

Sample

% cat long.json
{
  "foo": [
    "barrrrrrrrrrrrrrrrrr",
    {
      "baz": "quuuuuuuuuuuuuuux"
    }
  ]
}
% json-elide-strings --length=6 < long.json
{
  "foo": [
    "bar...",
    {
      "baz": "quu..."
    }
  ]
}