8 if ( !Config::Any::JSON->is_supported ) {
9 plan skip_all => 'JSON format not supported';
16 my $config = Config::Any::JSON->load( 't/conf/conf.json' );
18 is( $config->{ name }, 'TestApp' );
23 my $file = 't/invalid/conf.json';
24 my $config = eval { Config::Any::JSON->load( $file ) };
26 is $config, undef, 'config load failed';
27 isnt $@, '', 'error thrown';
30 # parse error generated on invalid config
32 my $file = 't/invalid/conf.json';
33 my $config = eval { Config::Any->load_files( { files => [$file], use_ext => 1} ) };
35 is $config, undef, 'config load failed';
36 isnt $@, '', 'error thrown';