changed json formatting

This commit is contained in:
2023-04-29 19:59:16 -07:00
parent 23716a7bc7
commit ce51e5c35c
3 changed files with 15 additions and 20 deletions

View File

@@ -152,7 +152,7 @@ class ServerVCKO:
if not game:
response = "game state error: game not found"
else:
game_json = json.dumps(game, cls=GameObjectEncoder)
game_json = json.dumps(game, cls=GameObjectEncoder, indent=2)
response = f"game state {game_json}"
conn.send(response.encode(Constants.text_format))