diff --git a/Makefile b/Makefile
index e45ca3fb449eaa929271a70f838f9559bf41cb6e..fe6368d570410ab569f9083ae2602a08c30ec3f1 100644
--- a/Makefile
+++ b/Makefile
@@ -1018,6 +1018,8 @@ test_c: buildtests_c
 	$(Q) $(BINDIR)/$(CONFIG)/httpcli_test || ( echo test httpcli_test failed ; exit 1 )
 	$(E) "[RUN]     Testing interop_test"
 	$(Q) $(BINDIR)/$(CONFIG)/interop_test || ( echo test interop_test failed ; exit 1 )
+	$(E) "[RUN]     Testing json_rewrite_test"
+	$(Q) $(BINDIR)/$(CONFIG)/json_rewrite_test || ( echo test json_rewrite_test failed ; exit 1 )
 	$(E) "[RUN]     Testing json_test"
 	$(Q) $(BINDIR)/$(CONFIG)/json_test || ( echo test json_test failed ; exit 1 )
 	$(E) "[RUN]     Testing lame_client_test"
diff --git a/build.json b/build.json
index 6e52d0b6d87e4582cf6c03d2f6da09efbb8b9ab7..fca657866a8bf7c72f246649da97ec83d0af39ad 100644
--- a/build.json
+++ b/build.json
@@ -1282,7 +1282,6 @@
     {
       "name": "json_rewrite_test",
       "build": "test",
-      "run": false,
       "language": "c",
       "src": [
         "test/core/json/json_rewrite_test.c"
diff --git a/templates/tools/run_tests/tests.json.template b/templates/tools/run_tests/tests.json.template
index 04a5137f39d669f210ce4848da78fbb36ff6a018..bb54489861550794513fabc5e32fd41f1eab39e4 100644
--- a/templates/tools/run_tests/tests.json.template
+++ b/templates/tools/run_tests/tests.json.template
@@ -4,6 +4,6 @@ import json
 
 ${json.dumps([{"name": tgt.name, "language": tgt.language}
               for tgt in targets
-              if tgt.build == "test" and tgt.name[-5:] == "_test"],
+              if tgt.get('run', True) and tgt.build == 'test'],
              sort_keys=True, indent=2)}