simple helper to turn ls into a JSON object, along with a generic template for turning lists into a JSON array of name:value objects (awk)