Hi,
I'm using the
blobmsg_format_json(...)
to convert a blobmsg to a Json-String to send it via Network.
Now I'm searching for an reverse function to get from a Json-String an blobmsg.
Is there a function for it? I think there isn't or?
Hi,
I'm using the
blobmsg_format_json(...)
to convert a blobmsg to a Json-String to send it via Network.
Now I'm searching for an reverse function to get from a Json-String an blobmsg.
Is there a function for it? I think there isn't or?
I think the function you are looking for is
blobmsg_add_json_from_string(...)
You can see an example in the ubus CLI, in particular, the "call" argument.
https://git.lede-project.org/?p=project/ubus.git;a=blob;f=cli.c
Thanks!
That was exactly I was looking for.
Works perfectly,
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.