Fixes #23: added --json option to print a json instead