Adds '-j' option for 'list' command to generate JSON output. Signed-off-by: Daniel Golle <daniel@makrotopia.org>