aboutsummaryrefslogtreecommitdiff
path: root/lib/AlgaOS/Updater/Util.pm
blob: 9ad5f989206ab259e58121433610f7120ad94322 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package AlgaOS::Updater::Util;

use v5.40.0;
use strict;
use warnings;

use JSON qw/from_json to_json/;

use Exporter 'import';

our @EXPORT = qw(to_json_packet to_json from_json);

sub to_json_packet($packet) {
    return to_json($packet) . "\n";
}
1;