The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.
use JSON::Syck;
use Test::More tests => 1;

my $dump = JSON::Syck::Dump({a => "hello\nworld\n"});
is $dump, q({"a":"hello\nworld\n"});