Quantcast
Channel: OPC Labs - OPC Labs - Recent Topics - OPC Labs Online Forums
Viewing all articles
Browse latest Browse all 1794

Serialize UAGenericObject as JSON - by: jlorek

$
0
0
Hi,

after successfully reading data as OpcUa Complex Data i need to serialize the data in JSON format to store the measurement in a NoSQL database.
I already figured out how to serialize the data in XML format, but i was surprised that besides the actual data, the serialized XML contains tons of namespace information and type definitions. The desired JSON structure i hope to achive should be very close to the Debug Output created by UAGenericObject.ToString("V"), which just contains name and actual values.

Is there alreay a built-in mechanism to serialize a UAGenericObject (or any other data object) to JSON?

Thanks,
Jens

Viewing all articles
Browse latest Browse all 1794

Trending Articles