my $json = JSON->new->allow_nonref(1);
$json = $json->encode($value);
$json =~ s/'/'/g;
$json =~ s/^"|"$//g; # Remove quotes around the strings
return $json;
}
-