From bc827326eb358047508a465ed7230eaee4e0189e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 26 Oct 2021 12:31:01 +0200
Subject: [PATCH] JSON: fix syntax error in the aux vars table introduced in
 a7fb198463387cedfeaed8685959583d2a0b4461

---
 src/SymbolTable.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/SymbolTable.cc b/src/SymbolTable.cc
index 0ac93448..76ad7718 100644
--- a/src/SymbolTable.cc
+++ b/src/SymbolTable.cc
@@ -975,7 +975,7 @@ SymbolTable::writeJsonOutput(ostream &output) const
 	      if (aux_vars[i].get_orig_symb_id() >= 0)
 		output << R"(, "orig_index": )" << getTypeSpecificID(aux_vars[i].get_orig_symb_id())+1
 		       << R"(, "orig_lead_lag": )" << aux_vars[i].get_orig_lead_lag()
-		       << R"(, "unary_op": )" << aux_vars[i].get_unary_op();
+		       << R"(, "unary_op": ")" << aux_vars[i].get_unary_op() << R"(")";
 	      break;
 	    case AuxVarType::multiplier:
 	      output << R"(, "eq_nbr": )" << aux_vars[i].get_equation_number_for_multiplier() + 1;
-- 
GitLab