obs-studio/UI/goliveapi-censoredjson.hpp
2024-06-04 20:50:46 -04:00

13 lines
350 B
C++

#pragma once
#include <obs.hpp>
#include <QString>
#include <nlohmann/json_fwd.hpp>
/**
* Returns the input serialized to JSON, but any non-empty "authorization"
* properties have their values replaced by "CENSORED".
*/
QString censoredJson(obs_data_t *data, bool pretty = false);
QString censoredJson(nlohmann::json data, bool pretty = false);