The toStyledString method from Value produces different output than the operator<< for streams. The indentation depth is different. I would appreciate to have only 4 spaces indentation for both methods. Otherwise the line length gets to big easily.
I think it's the same now at: https://github.com/open-source-parsers/jsoncpp/
But we make no guarantees for toStyledString(). To control the format, use StreamWriterBuilder.
toStyledString()
StreamWriterBuilder
Log in to post a comment.
I think it's the same now at: https://github.com/open-source-parsers/jsoncpp/
But we make no guarantees for
toStyledString()
. To control the format, useStreamWriterBuilder
.