@@ -83,7 +83,7 @@ static bool isArrayLike(const std::string& s) {
8383 // then check if it is object
8484 // then check if it is number or boolean
8585 // otherwise treat as string
86- // note that array could be nested, and its elemetns can be strings
86+ // note that array could be nested, and its elements can be strings
8787 // note that object could contain array
8888 // note that array could contain object
8989 // note that object could contain object
@@ -100,8 +100,8 @@ static bool isArrayLike(const std::string& s) {
100100}*/
101101
102102// write toJson function
103- // it shoudl know based on content of value from pair if it is string or number or bool
104- // if number or bool, or array or json object. Note that array could be nested, and its elemetns can be strings
103+ // it should know based on content of value from pair if it is string or number or bool
104+ // if number or bool, or array or json object. Note that array could be nested, and its elements can be strings
105105static std::string toJson (const std::vector<std::pair<std::string, std::string>>& items) {
106106 std::ostringstream oss;
107107 oss << " {" ;
@@ -138,7 +138,7 @@ static std::string toJson(const std::vector<std::pair<std::string, std::string>>
138138}
139139
140140// write toJson function
141- // it shoudl know based on content of value from pair if it is string or number or bool
141+ // it should know based on content of value from pair if it is string or number or bool
142142/* static std::string toJson2(const std::vector<std::pair<std::string, std::string>>& parameters) {
143143 rapidjson::Document doc;
144144 doc.SetObject();
0 commit comments