diff --git a/src/ModelTree.cc b/src/ModelTree.cc
index f6d3338480d310001f7a78172b570c2acb41527b..8d8df52bf29dd9f4ceef706ea370df77621529a2 100644
--- a/src/ModelTree.cc
+++ b/src/ModelTree.cc
@@ -1707,21 +1707,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
         {