Format code
Use json decoder to unmarshal json responses