Skip to content

Commit

Permalink
- Removed duplicated in example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas David committed Aug 16, 2021
1 parent f22f59e commit 80e4d3f
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions examples/example_json_map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,6 @@ CROW_ROUTE(app, "/json-initializer-list-constructor")
});
});

CROW_ROUTE(app, "/json-map-constructor")
([] {
crow::json::wvalue::object_type map({
{"first", "Hello world!"}, /* stores a char const* hence a type::String */
{"second", "How are you today?"}, /* stores a char const* hence a std::int64_t. */
{"third", 54}, /* stores an int (as 54 is an int literal) hence a std::int64_t. */
{"fourth", 54l}, /* stores a long (as 54l is a long literal) hence a std::int64_t. */
{"fifth", 54u}, /* stores an unsigned int (as 54u is a unsigned int literal) hence a std::uint64_t. */
{"sixth", 54ul}, /* stores an unsigned long (as 54ul is an unsigned long literal) hence a std::uint64_t. */
{"seventh", 2.f}, /* stores a float (as 2.f is a float literal) hence a double. */
{"eighth", 2.}, /* stores a double (as 2. is a double literal) hence a double. */
{"ninth", nullptr}, /* stores a std::nullptr hence type::Null . */
{"tenth", true} /* stores a bool hence type::True . */
});

return crow::json::wvalue(map);
});


// enables all log
app.loglevel(crow::LogLevel::Debug);

Expand Down

0 comments on commit 80e4d3f

Please sign in to comment.