import json result = {"status": "ok", "service": "$svc"} print(json.dumps(result))