Commit 92ada8e7 authored by Houtan Bastani's avatar Houtan Bastani

fix bug in writing of JSON output in options list

parent 7b6f23c5
Pipeline #1063 passed with stage
in 1 minute and 31 seconds
/*
* Copyright (C) 2006-2018 Dynare Team
* Copyright (C) 2006-2019 Dynare Team
*
* This file is part of Dynare.
*
......@@ -256,10 +256,11 @@ OptionsList::writeJsonOutput(ostream &output) const
}
for (auto it = symbol_list_options.begin();
it != symbol_list_options.end(); it++)
it != symbol_list_options.end();)
{
output << "\""<< it->first << "\":";
output << "\""<< it->first << "\": {";
it->second.writeJsonOutput(output);
output << "}";
it++;
if (it != symbol_list_options.end()
|| !vector_int_options.empty())
......@@ -289,7 +290,6 @@ OptionsList::writeJsonOutput(ostream &output) const
output << ", ";
}
for (auto it = vector_str_options.begin();
it != vector_str_options.end();)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment