JSON Format Output / Headlines on Objects or Arrays

Hi All.

I want using views to get JSON values for example on Column Hosts:Inventory:Networking->Interfaces. In the GUI I see it perfect as normal checkMk GUI View. If I use this view with using output_format=json or output_format=python I get a unusable data stream…

Exist some other parameters to use, to get a usable JSON data stream on such complex objects?

As I remember and see in my account, I had this question months ago. Has something happens on this item, to make own complex views possible for JSON/Python extracts?

Thanks for help
Volker

You can only have one table outputted this way.
In your screenshot you try it with a multi table view.
If you open one table from this view and output it as JSON this must work.

How can I open just one table? In the View Part, I see no way to select…

If the table looks like this


then there is already a table view existing for the information. If the “Open…” is missing you need to create a view for the data. The network table is a good example how to do this.
If you create your own view it is important to select the correct data source. Like you see it at the default views for some inventory data.

The problem will occur if you cannot find your wanted data as a data source. This means the definition for this data as data source is missing.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.