jvar icon indicating copy to clipboard operation
jvar copied to clipboard

Option for suppressing pretty print?

Open andrei-markeev opened this issue 9 years ago • 2 comments

Hi,

Sometimes pretty print is not necessary and only increases the traffic that is passed over the wire. It would be great if there was a way to switch it off. I'm thinking of adding an optional parameter to toJsonString(), toString() and toStrB() methods that would turn off emitting \n and \t into the final string. What do you think?

andrei-markeev avatar Dec 17 '15 20:12 andrei-markeev

Sounds good to me

YasserAsmi avatar Dec 19 '15 06:12 YasserAsmi

Great! I'll prepare PR.

andrei-markeev avatar Dec 19 '15 09:12 andrei-markeev