def init_json_plan_by_version():
    try:
        json_input_plan = json.loads(pecan.request.body)
    except __HOLE__ as excp:
        raise exception.BadRequest(reason='Plan is invalid. '
                                          + six.text_type(excp))
    return init_plan_by_version(json_input_plan)
dataset/ETHPy150Open openstack/solum/solum/api/controllers/v1/plan.py/init_json_plan_by_version