mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
Utils: Always return a JSON object
This commit is contained in:
parent
1b213c7dca
commit
e4fbebb3b4
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user