# Lesson 3: JSON in and out This lesson covers jSON in and out. You'll read a short explanation, try three small exercises and finish with a quiz. Full lesson: [https://glibcode.net/courses/go-apis/lessons/3](https://glibcode.net/courses/go-apis/lessons/3) ## Files - `main.go`: encoding and decoding JSON > **Tip:** Run `gofmt -w .` before committing; nobody argues about formatting in Go. > **Tip:** `go vet ./...` catches mistakes the compiler allows. ## Run it ```sh go run ./lessons/03-json-in-and-out ``` ## Exercises See [exercises.md](exercises.md). Ask in the forum after you have tried.