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)