When we apply from_json(), and then pass the structure to to_Json() and apply dump(), we can verify that we get the JsonString we stared with back. However, the problem we are having is that when we want to retrieve an individual member by using get_xxx() we get null. However, if we individually set_xxx() the member then the get_xxx() returns the correct value. Does anyone know what the problem is?
Hdr JsonSting before FromJson: {"correlation_id":"correlation_id_1","datacontenttype":"datacontenttype_1","dataschema":"dataschema_1","event_time":"event_time_1","id":"id_1","source":"source_1","specversion":"specversion_1","subject":"subject_1","type":"type_1"}
saved correlation_id: {"correlationId":null}
Hdr JsonString after toJson: {"correlationId":null,"datacontenttype":"datacontenttype_1","dataschema":"dataschema_1","eventTime":null,"id":"id_1","source":"source_1","specversion":"specversion_1","subject":"subject_1","type":"type_1"}
raw correlation_id: "correlation_id_1"
raw datacontenttype: "datacontenttype_1"
get correlationId: 0xa386f0
get correlationId: correlation_id_1
When we apply from_json(), and then pass the structure to to_Json() and apply dump(), we can verify that we get the JsonString we stared with back. However, the problem we are having is that when we want to retrieve an individual member by using get_xxx() we get null. However, if we individually set_xxx() the member then the get_xxx() returns the correct value. Does anyone know what the problem is?
Output: