#!/bin/sh
cmd="ls $1"
OUT=""
for name in `${cmd}`; do
  if [ "${OUT}" != "" ] ; then
    OUT="${OUT},"
  fi
  OUT="${OUT} \"${name}\" : { \"type\" : \"item\", \"action\" : \"${name}\"}"
done
echo "{ ${OUT} }"

Create a directory for placing sample JSON menu generation scripts, and add one (incomplete yet) for listing the contents of the current directory (home dir ususally)
Create a directory for placing sample JSON menu generation scripts, and add one (incomplete yet) for listing the contents of the current directory (home dir ususally)
