Patrick has created a Go program that serializes the Dog struct using the json.Marshal() function.
Now he wants to print the serialized dogJSON in a humanly-readable format. Please help Patrick write the required additional code to do this.
Patrick has created a Go program that serializes the Dog struct using the json.Marshal() function.
Now he wants to print the serialized dogJSON in a humanly-readable format. Please help Patrick write the required additional code to do this.
Sample Input 1:
Bruno Maltese 1Sample Output 1:
{"Name":"Bruno","Breed":"Maltese","Age":1}Create a free account to access the full topic