News for hackers. Stuff that matters.
Re:Unix Toolbox (2008) by Xophmeister on Friday February 21, 2020 @09:26AM (#22383299)

    { "[actual-filename-string]" }
...isn't valid JSON. As for going up the metatower, my personal take on this would be to strive for brevity. That is, what's the least structure we can get away with to unambiguously serialise what is needed? In most(?) cases, this is probably best:

    { "filename": "whatever", "foo": "bar", "etc": "etc" }
However, maybe there are instances where:

    [
      { "attribute": "filename", "value": "whatever" },
      { "attribute": "foo", "value": "bar" },
      { "attribute": "etc", "value": "etc" }
    ]
...is more appropriate. If, for example, you need to encode a flexible schema, rather than a fixed one.
Re:Unix Toolbox (2008) by swiley on Friday February 21, 2020 @04:36PM (#22387048)
If brevity is what you want then what’s wrong with the default field record ls output? It’s even a regular language!