You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on an application where two process exchange data through shared memory. So instead of using structs to pack the data, I choose to use JSON so that I won't face any issues due to compilers.
My sender side is written in C and the receiver side is written in C++14 code.
On my sender side, I can just use
json_object * jobj = json_tokener_parse(string);
and copy this jobj into the shared memory region.
On the reciver side, which is C++, how do I read get the json data from the json_object * object?
I really appreciate the help.
The text was updated successfully, but these errors were encountered:
I am working on an application where two process exchange data through shared memory. So instead of using structs to pack the data, I choose to use JSON so that I won't face any issues due to compilers.
My sender side is written in C and the receiver side is written in C++14 code.
On my sender side, I can just use
and copy this
jobj
into the shared memory region.On the reciver side, which is C++, how do I read get the json data from the
json_object *
object?I really appreciate the help.
The text was updated successfully, but these errors were encountered: