From 6346679ad8a3e9a074c239f33156dda82601bd34 Mon Sep 17 00:00:00 2001 From: danielpeintner Date: Fri, 13 Oct 2023 14:25:24 +0200 Subject: [PATCH] refactor(binding-opcua): remove unnecessary data transformation see https://github.com/eclipse-thingweb/node-wot/pull/1072 --- packages/binding-opcua/src/codec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/binding-opcua/src/codec.ts b/packages/binding-opcua/src/codec.ts index 57fbc1f7c..4e4626021 100644 --- a/packages/binding-opcua/src/codec.ts +++ b/packages/binding-opcua/src/codec.ts @@ -266,7 +266,7 @@ export class OpcuaBinaryCodec implements ContentCodec { const binaryStream = new BinaryStream(bytes); const dataValue = new DataValue(); dataValue.decode(binaryStream); - return JSON.parse(JSON.stringify(opcuaJsonEncodeDataValue(dataValue, true))); + return opcuaJsonEncodeDataValue(dataValue, true); } valueToBytes(