Data format of UBUS - JSON?

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?

With examples:
ubus -v list

common misconception -
an answer from another forum

still i don't understand big-endian for the same computer

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