FIX: JSON remove space before symbols + quote values
parent
64642d928c
commit
96b35ff078
|
@ -66,9 +66,9 @@ InitParamStatement::writeJuliaOutput(ostream &output, const string &basename)
|
|||
void
|
||||
InitParamStatement::writeJsonOutput(ostream &output) const
|
||||
{
|
||||
output << "{\"statementName\": \"param_init\", \"name\": \"" << symbol_table.getName(symb_id) << "\", " << "\"value\": ";
|
||||
output << "{\"statementName\": \"param_init\", \"name\": \"" << symbol_table.getName(symb_id) << "\", " << "\"value\": \"";
|
||||
param_value->writeOutput(output);
|
||||
output << "}";
|
||||
output << "\"}";
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1025,9 +1025,9 @@ SymbolTable::writeJsonVarVector(ostream &output, const vector<int> &varvec) cons
|
|||
for (int i = 0; i < varvec.size(); i++)
|
||||
{
|
||||
output << endl << "{"
|
||||
<< "\"name\":\" " << getName(varvec[i]) << "\", "
|
||||
<< "\"texName\":\" " << boost::replace_all_copy(getTeXName(varvec[i]), "\\", "\\\\") << "\", "
|
||||
<< "\"longName\":\" " << boost::replace_all_copy(getLongName(varvec[i]), "\\", "\\\\") << "\"}";
|
||||
<< "\"name\":\"" << getName(varvec[i]) << "\", "
|
||||
<< "\"texName\":\"" << boost::replace_all_copy(getTeXName(varvec[i]), "\\", "\\\\") << "\", "
|
||||
<< "\"longName\":\"" << boost::replace_all_copy(getLongName(varvec[i]), "\\", "\\\\") << "\"}";
|
||||
if (i < varvec.size() - 1)
|
||||
output << ", ";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue