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
Level Prominent Change
Class Bug Fix
Compatibility Compatible - no manual interaction needed
Checkmk versions & editions
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1
Not yet released
Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.4.0i1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)
1.2.8p6 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk MSP (CME)

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