1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-09 11:01:47 +03:00

more test cases

This commit is contained in:
Niels
2015-02-10 20:28:16 +01:00
parent 8c6bb04d10
commit 3589837071
3 changed files with 68 additions and 10 deletions

View File

@ -1463,11 +1463,6 @@ class basic_json
switch (m_type)
{
case (value_t::null):
{
return "null";
}
case (value_t::object):
{
if (m_value.object->empty())
@ -1558,6 +1553,11 @@ class basic_json
{
return std::to_string(m_value.number_float);
}
default:
{
return "null";
}
}
}