summaryrefslogtreecommitdiffstats
path: root/tools/coccinelle/vty_json.cocci
blob: 2f2f321ec4071a1f690bcbebd65bd9257d941d77 (plain)
1
2
3
4
5
6
7
8
9
10
@@
identifier vty;
identifier json;
constant fmt;
@@

-vty_out(vty, fmt, json_object_to_json_string_ext(json, ...));
...
-json_object_free(json);
+vty_json(vty, json);