nyx-cmd/nyx_cmd_output_json.cpp
void NyxCmdOutputJson::finalizeOutput(ostringstream &output)
{
	if (printOutputEnabled)
	{
		//remove final ','
		string tempCpy = output.str();
		tempCpy.erase(tempCpy.rfind(","));
		cout << tempCpy;

		cout << endl << "}" << endl;
	}
}
/*
* finalizeOutput finalizes JSON output and prints out to cout
*
*/
finalizeOutput finalizes JSON output and prints out to cout
finalizeOutput finalizes JSON output and prints out to cout
void NyxCmdOutputJson::finalizeOutput(ostringstream &output)
{
	if (printOutputEnabled)
	{
		string tempCpy = output.str();
		tempCpy.erase(tempCpy.rfind(","));
		cout << tempCpy;
		cout << endl << "}" << endl;
	}
}
void NyxCmdOutputJson :: finalizeOutput ( ostringstream & output ) { if ( printOutputEnabled ) { string tempCpy = output . str ( ) ; tempCpy . erase ( tempCpy . rfind ( " " ) ) ; cout << tempCpy ; cout << endl << " " << endl ; } }
finalizeOutput finalizes JSON output and prints out to cout
finalizeOutput finalizes JSON output and prints out to cout
//remove final ','