diff --git a/src/Statement.cc b/src/Statement.cc index e1f992a845ac32c4444dc13eb71c922231b2ea9e..8abf256f914586d0d86459f3b1d07eaa94a569ee 100644 --- a/src/Statement.cc +++ b/src/Statement.cc @@ -1,5 +1,5 @@ /* - * 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();) {