package Catalyst::Plugin::ConfigLoader::Environment;
use warnings;
use strict;
use JSON::Any;
use MRO::Compat;
=head1 NAME
Catalyst::Plugin::ConfigLoader::Environment - Configure your
application wi
the 0.01-style use of
bourne-incompatible variable names is retained.
Values are JSON-decoded if they look like JSON arrays or objects
(i.e. if they're enclosed in []s or {}s). Taking advantage of t
{
my $val = $env{$var};
# Decode JSON array/object
if ( $val =~ m{^\[.*\]$|^\{.*\}$} ) {
$val = JSON::Any->jsonToObj($val);
}
# Special syntax M