using go json library to print structs to sdout