diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index b79ee6b5ff1bbafc0e1abfd300c96fdfdb6c4c39..17702db1a1cf11f29d7b7b58e9058e01da104238 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -1829,21 +1829,7 @@ ModelTree::writeJsonModelEquations(ostream &output, bool residuals) const
 
           output << R"(, "rhs": ")";
           rhs->writeJsonOutput(output, {}, {});
-          output << R"(")";
-          try
-            {
-              // Test if the right hand side of the equation is empty.
-              if (rhs->eval({}) != 0)
-                {
-                  output << R"(, "rhs": ")";
-                  rhs->writeJsonOutput(output, {}, {});
-                  output << R"(")";
-                }
-            }
-          catch (ExprNode::EvalException &e)
-            {
-            }
-          output << "}";
+          output << R"("})";
         }
       else
         {