cleaned up server2.go, a json decoder