From 10c1041732db9708575aaf5dbfff8b08cb444259 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Fri, 26 Feb 2016 19:43:06 +0100 Subject: tools/add_switches*: Output JSON instead of Dumper() --- tools/add_switches.txt.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/add_switches.txt.pl b/tools/add_switches.txt.pl index 283eeea..5a6b83c 100755 --- a/tools/add_switches.txt.pl +++ b/tools/add_switches.txt.pl @@ -9,8 +9,9 @@ use strict; use warnings; use Data::Dumper; use lib '../include'; +use JSON; use nms::util; my %switches = parse_switches_txt(*STDIN); -print Dumper(\%switches); +print JSON::XS::encode_json(\%switches); -- cgit v1.2.3