It seems that the format of the C++ API output is defined here 3, which seems to use a few conditions and uses the fixed formatting.
I don’t see any options you could pass to change the format, but you could create a feature request and exaplain your use case on GitHub.