now outputs correct JSON with friendly indents
added a :q command at the end of the file to terminate the program and output the resulting JSON