jak-project/common/util/json_util.h
water111 223adeeb0c
Automatically get float label type in most cases (#463)
* automatically get float type in most cases

* try harder to print json errors

* fix test
2021-05-11 21:57:05 -04:00

10 lines
332 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);