Instead of using `.toStyledString`, I'd suggest using jsoncpps `FastWriter` (http://jsoncpp.sourceforge.net/class_json_1_1_fast_writer.html)