Commit 99261bf3 authored by Niels's avatar Niels

Merge pull request #129 from dariomt/master

fixed typos in comments for examples
parents 0a813539 26074581
......@@ -4,7 +4,7 @@ using namespace nlohmann;
int main()
{
// create a JSON boolean
// create a JSON number
json value = 17;
// explicitly getting pointers
......
......@@ -4,7 +4,7 @@ using namespace nlohmann;
int main()
{
// create a JSON boolean
// create a JSON number
json value = 17;
// explicitly getting pointers
......
......@@ -4,13 +4,13 @@ using namespace nlohmann;
int main()
{
// create JSON arrays
// create JSON objects
json j_no_init_list = json::object();
json j_empty_init_list = json::object({});
json j_list_of_pairs = json::object({ {"one", 1}, {"two", 2} });
//json j_invalid_list = json::object({ "one", 1 }); // would throw
// serialize the JSON arrays
// serialize the JSON objects
std::cout << j_no_init_list << '\n';
std::cout << j_empty_init_list << '\n';
std::cout << j_list_of_pairs << '\n';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment