Werk #3726: WATO Web-API: Fixed default output format - using JSON as intended

Component Setup
Title WATO Web-API: Fixed default output format - using JSON as intended
Date Jul 29, 2016
Checkmk Edition Checkmk Raw (CRE)
Checkmk Version 1.2.8p6 1.4.0i1
Level Prominent Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed

The WATO Web-API was using Python as default output format since version 1.2.8b8 and commit 36142e6d, which was not intended.

The API is able to output JSON and Python formated data, which can be toggled using the variable output_format=json or output_format=python. The default has now been changed back to be JSON.

In case you created scripts against this API since 1.2.8b8, did not use a JSON parser to load the data and used something like eval() in Python instead, you will have to change your scripts. You can either add the variable output_format=python or replace your eval() with json.loads() in Python.

To the list of all Werks