Changes for SQL::Translator
* Add support for parsing PostgreSQL dollar-quoted strings
+ * switched JSON backend from JSON.pm to JSON::MaybeXS
0.11024 2018-01-09
'XML::LibXML' => '1.69',
},
test_requires => {
- 'JSON' => '2.0',
+ 'JSON::MaybeXS' => '1.003003',
'YAML' => '0.66',
'XML::Writer' => '0.500',
'Test::More' => '0.88',
use SQL::Translator::Schema;
use SQL::Translator::Utils qw(header_comment);
use Data::Dumper;
-use JSON;
+use JSON::MaybeXS 'from_json';
sub parse {
my ($translator, $data) = @_;
use warnings;
our $VERSION = '1.00';
-use JSON;
+use JSON::MaybeXS 'to_json';
sub produce {
my $translator = shift;
=head1 SEE ALSO
-SQL::Translator, JSON, http://www.json.org/.
+SQL::Translator, JSON::MaybeXS, http://www.json.org/.
=head1 AUTHORS
}
my $sqlt_version = $SQL::Translator::VERSION;
-use JSON;
+use JSON::MaybeXS 'from_json';
my $json = from_json(<<JSON);
{
"schema" : {