more documentation
This commit is contained in:
parent
27b0a4d170
commit
844bfd39b5
10 changed files with 238 additions and 48 deletions
14
doc/examples/basic_json__number_integer_t.cpp
Normal file
14
doc/examples/basic_json__number_integer_t.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#include <json.hpp>
|
||||
|
||||
using namespace nlohmann;
|
||||
|
||||
int main()
|
||||
{
|
||||
// create a JSON number from number_integer_t
|
||||
json::number_integer_t value = 42;
|
||||
|
||||
json j(value);
|
||||
|
||||
// serialize the JSON numbers
|
||||
std::cout << j << '\n';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue