mirror of
https://github.com/nlohmann/json.git
synced 2026-10-17 19:48:12 +00:00
renamed "toString()" to "to_string()"
This commit is contained in:
1 parent
f63ff7727e
commit
3bef1a5097
4 files changed
+14
-14
No files matched your search
@@ -116,7 +116,7 @@ You can also get a string representation (serialize):
|
||||
|
||||
```cpp
|
||||
// explicit conversion to string
|
||||
std::string s = j.toString();
|
||||
std::string s = j.to_string();
|
||||
```
|
||||
|
||||
The value of s could be `{"pi": 3.141, "happy": true}`, but the order of the entries in the object is not fixed.
|
||||
|
||||
Reference in new issue
Block a user