reorganized repo
This commit is contained in:
parent
4bb5126502
commit
91c330ae01
88 changed files with 313 additions and 321 deletions
15
doc/examples/basic_json__array_t.cpp
Normal file
15
doc/examples/basic_json__array_t.cpp
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include <json.hpp>
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
int main()
|
||||
{
|
||||
// create an array_t value
|
||||
json::array_t value = {"one", "two", 3, 4.5, false};
|
||||
|
||||
// create a JSON array from the value
|
||||
json j(value);
|
||||
|
||||
// serialize the JSON array
|
||||
std::cout << j << '\n';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue