SYNOPSIS
use Flux::Format::JSON;
my $json_storage = Flux::Format::JSON->wrap($storage);
$json_storage->write({ foo => "bar" }); # will be serialized correctly, even if underlying $storage can only store strings ending with \n
my $in = $json_storage->in(...);
$in->read; # { foo => "bar" }