mirror of https://github.com/Icinga/icinga2.git
parent
eb746b9929
commit
893243db5f
|
@ -174,10 +174,8 @@ cJSON *Value::ToJson(void) const
|
||||||
} else if (IsObjectType<Array>()) {
|
} else if (IsObjectType<Array>()) {
|
||||||
Array::Ptr array = *this;
|
Array::Ptr array = *this;
|
||||||
return array->ToJson();
|
return array->ToJson();
|
||||||
} else if (IsEmpty()) {
|
|
||||||
return cJSON_CreateNull();
|
|
||||||
} else {
|
} else {
|
||||||
BOOST_THROW_EXCEPTION(std::runtime_error("Unknown object type."));
|
return cJSON_CreateNull();
|
||||||
}
|
}
|
||||||
|
|
||||||
case ValueEmpty:
|
case ValueEmpty:
|
||||||
|
|
Loading…
Reference in New Issue