mirror of
https://github.com/nlohmann/json.git
synced 2026-11-15 11:58:21 +00:00
more documentation
This commit is contained in:
1 parent
770b9820fe
commit
c85dbef98f
9 files changed
+441
-85
No files matched your search
@@ -0,0 +1,15 @@
|
||||
#include <json.hpp>
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
int main()
|
||||
{
|
||||
// create an string_t value
|
||||
json::string_t value = "The quick brown fox jumps over the lazy doc";
|
||||
|
||||
// create a JSON string from the value
|
||||
json j(value);
|
||||
|
||||
// serialize the JSON array
|
||||
std::cout << j << '\n';
|
||||
}
|
||||
Reference in new issue
Block a user