jak-project/common/util/json_util.h

12 lines
334 B
C++

#pragma once
#include <stdexcept>
#include "common/util/Range.h"
#include "third-party/json.hpp"
std::string strip_cpp_style_comments(const std::string& input);
nlohmann::json parse_commented_json(const std::string& input, const std::string& source_name);
Range<int> parse_json_optional_integer_range(const nlohmann::json& json);