more testing code; converted json to standard output