added json output as an option

Signed-off-by: Adam Fields <github345098@aquick.org>