YasserAsmi / jvar

JS inspired Variants and JSON parsing for C++
MIT License
24 stars 11 forks source link

Option for suppressing pretty print? #13

Open andrei-markeev opened 8 years ago

andrei-markeev commented 8 years ago

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?

YasserAsmi commented 8 years ago

Sounds good to me

andrei-markeev commented 8 years ago

Great! I'll prepare PR.