Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
OPC UA JSON DataEncoding for OPC UA Built-In types
November 26, 2019
16:38, EET
Avatar
gerstale
Member
Members
Forum Posts: 12
Member Since:
November 26, 2019
sp_UserOfflineSmall Offline

Hello,

could someone please provide examples how to encode OPC UA Built-In types to JSON for further processing? Assuming that it should be possible, as it specified in OPC 10000-6, OPC Unified Architectur, Part 6: Mappings.

Thank you in advance

November 27, 2019
10:43, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 1045
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

We do not support that yet. It is a relatively new thing, as it was only added in 1.04.

We will eventually release a “JsonEncoder” as it is needed for PubSub support that we are currently working on.

May 9, 2025
15:13, EEST
Avatar
msaala
Member
Members
Forum Posts: 4
Member Since:
November 16, 2015
sp_UserOfflineSmall Offline

Hello,
I’d like to come back to this very old topic because I think a lot has happened since then. I’m using version 5.2 of the Prosys OPC UA SDK, which now includes the announced JsonEncoder/JsonDecoder. I now have a similar task: the value from a node should be read and converted to JSON. In my case, the value is of the data type Structure or Structure[]. The best solution would be as generic as possible, one that can convert virtually any value from a node to JSON. I think this is a question you’re familiar with. Unfortunately, I haven’t found any documentation on JsonEncoder other than javadoc, but it’s not very comprehensive. Am I even on the right track with JsonEncoder? Do you have any other documentation/examples that I just haven’t found?

Thank you for any advice
Michael

Forum Timezone: Europe/Helsinki
Most Users Ever Online: 1919
Currently Online:
Guest(s) 17
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 90
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 733
Moderators: 8
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1545
Posts: 6516
Newest Members:
ptdenriqueta, basilpullman, Richardmip, mood edibles, LouieWreve, daniellabdx, janessan21, sammiebeak359, gena7127517, thorstenbouldin
Moderators: Jouni Aro: 1029, Pyry: 1, Petri: 1, Bjarne Boström: 1045, Jimmy Ni: 26, Matti Siponen: 353, Lusetti: 0, Elias: 0
Administrators: admin: 1