Can a mender-client inventory attribute value be a json file?

Hello everyone,

I’m looking to add a new attribute to the mender client inventory, to keep an eye on the list of packages installed in device with the info about packages.
Since there are a lot of information to be reported, I want to store it in a json file and then update the inventory with the json file.
I want to ask if there is a way to do so instead of directly printing the info?

At the moment inventory is strictly a text string with format KEY=VALUE. Potentially the VALUE field could be JSON but I’m not sure whether what would cause parsing errors on the server. Certainly it would be poorly formatted in the Web UI.

Drew

I have been using JSON arrays values to my key/value pairs in inventory for several years now and they display fine in the UI.

1 Like