();
use Encode ();
use Exporter ();
use JSON::Syck ();
use DBIx::Squirrel::Crypt::Fernet ();
if ( -e '.env' ) {
Dotenv
le contents will be uncompressed after they have been read
and possibly decrypted.
=item *
If ".json" forms part of the file's name or the C<unmarshal> option is
true, then the file contents will be
~ /\.bz2\b/ || $options->{uncompress};
return unmarshal($contents)
if $filename =~ /\.json\b/ || $options->{unmarshal};
return utf8decode($contents)
if $options->{utf8decode};
truction ();
use Dotenv ();
use Encode ();
use JSON::Syck ();
use Scalar::Util;
use Sub::Name;
BEGIN {
require Exporter;
ytes = memBunzip($bytes);
}
if ($filename =~ /\.json/) {
local $JSON::Syck::ImplicitUnicode = !!1;
return do { $_ = JSON::Syck::Load($bytes) };
}
if (!exists($options{d
ransform::JSON::Syck;
use strict;
use warnings;
use JSON::Syck;
BEGIN {
require DBIx::Squirrel unless keys(%DBIx::Squirrel::);
require Exporter;
$DBIx::Squirrel::Transform::JSON::Syck::V
JSON::Syck::ISA = qw/Exporter/;
@DBIx::Squirrel::Transform::JSON::Syck::EXPORT_OK = qw/as_json/;
@DBIx::Squirrel::Transform::JSON::Syck::EXPORT
= @DBIx::Squirrel::Transform::JSON
s_json {
return sub {
local($JSON::Syck::ImplicitTyping) = !!1;
local($JSON::Syck::ImplicitUnicode) = !!1;
local($JSON::Syck::SortKeys) = !!1;
return JSON::