Reverted back to original JSON format in client.py