Merge pull request #643 from theodelrieu/refacto/split_basic_json
Refacto/split basic json
This commit is contained in:
commit
7dee868a42
12880
src/json.hpp
12880
src/json.hpp
File diff suppressed because it is too large
Load Diff
@ -36,7 +36,7 @@ using nlohmann::json;
|
||||
json::lexer::token_type scan_string(const char* s);
|
||||
json::lexer::token_type scan_string(const char* s)
|
||||
{
|
||||
return json::lexer(json::input_adapter::create(s)).scan();
|
||||
return json::lexer(nlohmann::detail::input_adapter_factory::create(s)).scan();
|
||||
}
|
||||
|
||||
TEST_CASE("lexer class")
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -53,7 +53,7 @@ TEST_CASE("convenience functions")
|
||||
const char* escaped)
|
||||
{
|
||||
std::stringstream ss;
|
||||
json::serializer s(json::output_adapter<char>::create(ss), ' ');
|
||||
json::serializer s(nlohmann::detail::output_adapter_factory<char>::create(ss), ' ');
|
||||
s.dump_escaped(original);
|
||||
CHECK(ss.str() == escaped);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user