g41797
October 17, 2024, 5:40am
1
Data format of UBUS - JSON
Ubus uses JSON as data format to call object, method and respond to request.
This is not only place where it is written about JSON as UBUS format .
Looks like an urban legend .
As far as I understand from ubus sources
ubus uses own binary marshaller/de-marshaller for the messages.
the data stored as big-endian , which looks strange since the work is going on the same computer (i am not talking about message header)
JSON is used only as GUI (cli)
Is there anyone left who can clarify what format is used?
brada4
October 17, 2024, 6:53am
2
With examples:
ubus -v list
g41797
October 17, 2024, 7:12am
3
common misconception -
an answer from another forum
still i don't understand big-endian for the same computer
nbd
October 17, 2024, 9:13am
4
The format is the blob/blobmsg format from libubox. Since it's used not only for ubus, but for other purposes as well, it was designed to be host endian agnostic.
2 Likes
system
Closed
October 27, 2024, 9:13am
5
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.