FastWriter::write output and private members

beniz
2012-08-22
2013-04-22
  • beniz
    beniz
    2012-08-22

    Hi there!

    FastWriter::write adds a '\n' to every rendered Json::Value passed as arguments. My intuition is that it should not.

    Another solution is to grant the ability to derive classes from FastWriter in order to modify the 'write' fct. Unfortunately the document_ variable is declared as 'private' in FastWriter. Would it make sense to others as well to have 'document_' declared as 'protected' ?

    Thanks for this very useful library,

    Regards,

    Emmanuel