Merge pull request #643 from theodelrieu/refacto/split_basic_json

Refacto/split basic json
This commit is contained in:
Niels Lohmann authored and GitHub committed 2017-07-09 23:12:35 +02:00
commit 7dee868a42
4 files changed
+7007 -6791

No files matched your search

+6548 -6332
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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);
};