summaryrefslogtreecommitdiff
path: root/t/e00_func.t
blob: 56f091a3cc7ca072960fd4dfe84d7d966539b090 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

use Test::More;
use strict;
BEGIN { plan tests => 2 };
BEGIN { $ENV{PERL_JSON_BACKEND} ||= "JSON::backportPP"; }
use JSON;
#########################

my $json = JSON->new;

my $js = 'abc';


is(to_json($js, {allow_nonref => 1}), '"abc"');

is(from_json('"abc"', {allow_nonref => 1}), 'abc');