Xavi has created a Go program that has the FootballPlayer struct that will hold specific data about different football players. It will take the data about players as input.
Now Xavi needs to encode to JSON format the FootballPlayer struct. Unfortunately, he is running late for his morning training session and needs your help to write the additional code to serialize and print the struct!
Below is the code Xavi has written so far: