From 6733c1ffb4ec32facf59b83b6b24acd67e8c6a2c Mon Sep 17 00:00:00 2001 From: Yavuz Guler <169232915+yguleratlassian@users.noreply.github.com> Date: Thu, 4 Dec 2025 11:33:57 +0300 Subject: [PATCH] Update example.py Fix example script, convert json string --- _scripts/example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_scripts/example.py b/_scripts/example.py index b407dde..82694ce 100644 --- a/_scripts/example.py +++ b/_scripts/example.py @@ -24,7 +24,7 @@ def readValue(key): def writeCallback(callbackJson): pipe_path = args.get("jecNamedPipe") with open(pipe_path, "w") as pipe: - pipe.write(str(callbackJson)) + pipe.write(json.dumps(callbackJson)) pipe.close() testValue = readValue("test-key") @@ -34,4 +34,4 @@ def writeCallback(callbackJson): callback = '{"test-callback": "value"}' callbackJson = json.loads(callback) -writeCallback(callbackJson) \ No newline at end of file +writeCallback(callbackJson)