diff options
author | Kristian Lyngstol <kristian@bohemians.org> | 2016-02-26 19:43:06 +0100 |
---|---|---|
committer | Kristian Lyngstol <kristian@bohemians.org> | 2016-02-26 19:43:06 +0100 |
commit | 10c1041732db9708575aaf5dbfff8b08cb444259 (patch) | |
tree | df71e42324002f6fceef65903befd7fcee58a1db /tools | |
parent | 3dae75bde90aecc0cef2e3496f3565dcb3eeec0c (diff) |
tools/add_switches*: Output JSON instead of Dumper()
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/add_switches.txt.pl | 3 |
1 files changed, 2 insertions, 1 deletions
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); |