nas: add --set-network-preference
[project/uqmi.git] / data / gen-common.pm
index d9d281c..60d73e8 100644 (file)
@@ -22,6 +22,7 @@ $prefix eq 'ctl_' and $ctl = 1;
 sub get_json() {
        local $/;
        my $json = <>;
+       $json =~ s/^\s*\/\/.*$//mg;
        return decode_json($json);
 }