29 #include "nomlib/json/FileWriter.hpp"
34 FileWriter::FileWriter (
void ) {}
35 FileWriter::~FileWriter (
void ) {}
37 bool FileWriter::save (
38 const std::string& filename,
48 if ( fp.is_open() ==
false || fp.good() == false )
50 NOM_LOG_ERR ( NOM,
"Unable to save JSON output file: " + filename );
55 writer.write ( fp,
object.
get() );
61 const std::string FileWriter::stringify (
Writes a Value in JSON format in a human friendly way, to a stream rather than to a string...