def json_to_data(fn=None, return_json=True):
    def json_to_data_decorator(fn):
        @handle_type_error
        @wraps(fn)
        def get_data_wrapper(*args, **kwargs):
            kwargs["data"] = decode_json_body()

            if not return_json:
                return fn(*args, **kwargs)

            return encode_json_body(
                fn(*args, **kwargs)
            )

        return get_data_wrapper

    if fn:  # python decorator with optional parameters bukkake
        return json_to_data_decorator(fn)

    return json_to_data_decorator
Save away scaled info.
dataset/ETHPy150Open Bystroushaak/bottle-rest/src/bottle_rest/bottle_rest.py/json_to_data--crossover with--dataset/ETHPy150Open OpenMDAO/OpenMDAO/openmdao/core/test/test_driver_interface.py/ScaleAddDriverArray.run