Put children in quotation marks

This commit is contained in:
liuzicheng1987
2023-10-03 17:51:54 +02:00
committed by GitHub
parent 83a2b13c00
commit b8d723844b
+1 -1
View File
@@ -9,7 +9,7 @@ we generated a JSON string like this:
Likewise, if we read the JSON string and the field "children" is missing, that will result in a runtime error.
But Bart doesn't have any children. After all, he's only 10 years old. To indicate to the library that the field children is optional,
But Bart doesn't have any children. After all, he's only 10 years old. To indicate to the library that the field "children" is optional,
we can use either `std::optional`, `std::shared_ptr` or `std::unique_ptr` (TODO: unique_ptr currently unsupported).
If `std::optional` is `std::nullopt` or any of the smart pointers is a `nullptr`,