diff --git a/JsonGenerator/source/json_loader.py b/JsonGenerator/source/json_loader.py index 8c83e1c..ac50c11 100644 --- a/JsonGenerator/source/json_loader.py +++ b/JsonGenerator/source/json_loader.py @@ -617,7 +617,7 @@ def cpp_name(self): if self.is_renamed: return super().cpp_name elif isinstance(self.parent, JsonMethod): - return self.parent.actual_name.capitalize() + super().cpp_name + return self.parent.actual_name[0].upper() + self.parent.actual_name[1:] + super().cpp_name elif isinstance(self.parent, JsonArray): return self.parent.cpp_name else: