Unfortunately we do not currently have JSON serialization for UAGenericObject (or any our objects, in fact). I suggest that you design something of your own.
I would also slightly recommend against using the XML format for any long-term storage, because there was a consideration to change it in some future version (although no plans have been made yet). While we will probably provide some means for conversions, there will be an extra effort at that point.
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?