blob: d98a6ccd321661a5b51ff391cdf3303408599636 [file] [log] [blame]
#pragma once
#include <nlohmann/json.hpp>
#include <string>
namespace google
{
namespace ipmi
{
/**
* Parse a file and return the json object.
*
* @param[in] file - the path to the file to parse.
* @return the json object if valid.
* @throw elog<InternalFailure> on failures.
*/
nlohmann::json parseConfig(const std::string& file);
} // namespace ipmi
} // namespace google