Menu

#19 toStyledString produces different output than operator<<

0.5.0
closed-wont-fix
nobody
Writer (2)
5
2015-03-06
2010-06-25
No

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.

Discussion

  • Christopher Dunn

    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.

     
  • Christopher Dunn

    • status: open --> closed-wont-fix
    • Group: --> 0.5.0
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.