From e4fbebb3b4b42fdb77b8689b54b6bbf08653ce0c Mon Sep 17 00:00:00 2001 From: tt2468 Date: Fri, 14 May 2021 01:38:51 -0700 Subject: [PATCH] Utils: Always return a JSON object --- src/utils/Json.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/Json.cpp b/src/utils/Json.cpp index 98045aed..e7f03485 100644 --- a/src/utils/Json.cpp +++ b/src/utils/Json.cpp @@ -117,7 +117,7 @@ void set_json_array(json *j, const char *name, obs_data_item_t *item, bool inclu json Utils::Json::ObsDataToJson(obs_data_t *d, bool includeDefault) { - json j; + json j = json::object(); obs_data_item_t *item = nullptr; for (item = obs_data_first(d); item; obs_data_item_next(&item)) {