Now accepts json input, and displays to console