sngular/scs-multiapi-plugin

[AsyncApi] Print a class as json

alfredo9f opened this issue · 1 comments

What happens?

When I print a generated object in a log the toString method write a string with \n and blank spaces. This is not easy to read in the log system that shows lines per trace log.

What do would I like?

I would like to have a method that return me a json string in a line, without \n, \t, blank spaces etc.

The string is not a valid json structure. For example, I have this string from an object:

AccountEvent{ data:Data{ customerProductHolding:CustomerProductHolding{ productFullfillmentServiceDomainName:BrokeredProduct, id:d54dccd7-a44b-44ab-aa67-5e0faffacf3d, account:Account{ id:123456791, accountType:Personal, accountSubType:CurrentAccount, description:Description of the account, identification:80200110203349, schemeName:UK.OBIE.SortCodeAccountNumber, openingDate:null, status:Enabled, switchStatus:UK.CASS.SwitchCompleted, currency:GBP, product:Product{ id:8, productName:HSBC ADVANCE,}, servicer:Servicer{ identification:DAC.SERVICER.ID.654456, schemeName:UK.OBIE.BICFI,}, relatedParties:[Party{ partyId:psu-4889, partyType:Sole, name:Mr Bantu, fullLegalName:Mr Bantu Sinfield,}],},},},}