blob: d98a6ccd321661a5b51ff391cdf3303408599636 [file] [log] [blame]
Patrick Ventureab650002019-03-16 09:08:47 -07001#pragma once
2
3#include <nlohmann/json.hpp>
4#include <string>
5
6namespace google
7{
8namespace ipmi
9{
10
11/**
12 * Parse a file and return the json object.
13 *
14 * @param[in] file - the path to the file to parse.
15 * @return the json object if valid.
16 * @throw elog<InternalFailure> on failures.
17 */
18nlohmann::json parseConfig(const std::string& file);
19
20} // namespace ipmi
21} // namespace google