libobs: Save obs_data json in compact form

This commit is contained in:
jp9000 2021-04-16 19:09:55 -07:00
parent 7e9aea71d9
commit 0dc1e01b5b

View File

@ -736,7 +736,7 @@ const char *obs_data_get_json(obs_data_t *data)
data->json = NULL;
json_t *root = obs_data_to_json(data);
data->json = json_dumps(root, JSON_PRESERVE_ORDER | JSON_INDENT(4));
data->json = json_dumps(root, JSON_PRESERVE_ORDER | JSON_COMPACT);
json_decref(root);
return data->json;