Skip to content

Commit

Permalink
chore: fix note
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 26, 2023
1 parent ce58dfd commit f3a8f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample/sample.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ bool serializing()
{ { "i", "am", "key1" }, { { 1, { 0.1, 0.2 } }, { 2, { 0.2, 0.3 } } } },
{ { "key2" }, { { 3, { 0.4 } }, { 4, { 0.5, 0.6, 0.7 } } } },
};
// the "std::map<int, xxx>" cannot be converted to json because the key is "int",
// the "std::map" cannot be converted to json because the key is "std::vector<std::string>",
// you can set the template parameter "loose" of "serialize" to true, which will make a more relaxed conversion.
root["more_complex"] = json::serialize<true>(more_complex);

Expand Down

0 comments on commit f3a8f21

Please sign in to comment.