JSON output... implemented directory list