Currently the C++ output of quicktype is asymmetrical: boolean, integer, string and array[^1] types are comparable for equality, but the classes generated for JSON objects aren't. Equality comparison is important to detect if a message's contents are different from a previous one.
Add equality operators to each class (or struct, depending on the configuration), the equality should simply compare each member and perform logical AND on their results:
Currently the C++ output of quicktype is asymmetrical: boolean, integer, string and array[^1] types are comparable for equality, but the classes generated for JSON objects aren't. Equality comparison is important to detect if a message's contents are different from a previous one.
[^1]: if the contained type is also comparable
Context (Input, Language)
Output Language: C++
Current Behaviour / Output
Proposed Behaviour / Output
Add equality operators to each class (or struct, depending on the configuration), the equality should simply compare each member and perform logical AND on their results: