C:\Windows\system32>perl -MJSON -e "die qq{$JSON::VERSION\n}, JSON->new->pretty-
Show quoted text>canonical->encode({ qw(hello one bye two) })"
2.90
{
"bye" : "two",
"hello" : "one"
}
C:\Windows\system32>
C:\Windows\system32>perl -MJSON::PP -e "die qq{$JSON::PP::VERSION\n}, JSON::PP->
new->pretty->canonical->encode({ qw(hello one bye two) })"
2.27300
{
"bye" : "two",
"hello" : "one"
}
C:\Windows\system32>perl -MJSON::XS -e "die qq{$JSON::XS::VERSION\n}, JSON::XS->
new->pretty->canonical->encode({ qw(hello one bye two) })"
3.01
{
"bye" : "two",
"hello" : "one"
}
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp>module-starter --module Tmp
--email duncan@cpan.org --author DMG
Added to MANIFEST: Changes
Added to MANIFEST: ignore.txt
Added to MANIFEST: lib/Tmp.pm
Added to MANIFEST: Makefile.PL
Added to MANIFEST: MANIFEST
Added to MANIFEST: README
Added to MANIFEST: t/00-load.t
Added to MANIFEST: t/boilerplate.t
Added to MANIFEST: t/manifest.t
Added to MANIFEST: t/pod-coverage.t
Added to MANIFEST: t/pod.t
Created starter directories and files
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp>cd TMP
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>perl Makefile.PL
Checking if your kit is complete...
Looks good
Generating a dmake-style Makefile
Writing Makefile for Tmp
Writing MYMETA.yml and MYMETA.json
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>make dist
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e rm_rf -- Tmp-0.01
"C:\strawberry\perl\bin\perl.exe" "-MExtUtils::Manifest=manicopy,maniread" \
-e "manicopy(maniread(),'Tmp-0.01', 'best');"
mkdir Tmp-0.01
mkdir Tmp-0.01/t
mkdir Tmp-0.01/lib
{Generating META.yml}
{Generating META.json}
tar cvf Tmp-0.01.tar Tmp-0.01
Tmp-0.01/
Tmp-0.01/Changes
Tmp-0.01/t/
Tmp-0.01/t/manifest.t
Tmp-0.01/t/pod.t
Tmp-0.01/t/00-load.t
Tmp-0.01/t/pod-coverage.t
Tmp-0.01/MANIFEST
Tmp-0.01/Makefile.PL
Tmp-0.01/README
Tmp-0.01/lib/
Tmp-0.01/lib/Tmp.pm
Tmp-0.01/META.yml
Tmp-0.01/META.json
"C:\strawberry\perl\bin\perl.exe" -MExtUtils::Command -e rm_rf -- Tmp-0.01
gzip -9f Tmp-0.01.tar
{'Created Tmp-0.01.tar.gz'}
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>tar -xvf Tmp-0.01.tar
Tmp-0.01/
Tmp-0.01/Changes
Tmp-0.01/t/
Tmp-0.01/t/manifest.t
Tmp-0.01/t/pod.t
Tmp-0.01/t/00-load.t
Tmp-0.01/t/pod-coverage.t
Tmp-0.01/MANIFEST
Tmp-0.01/Makefile.PL
Tmp-0.01/README
Tmp-0.01/lib/
Tmp-0.01/lib/Tmp.pm
Tmp-0.01/META.yml
Tmp-0.01/META.json
G:\Documents\PerlSystems\Alien_Microsoft_Outlook\tmp\Tmp>
META.json:
{{{}
{ "abstract" : "The great new Tmp!",}
{ "author" : [}
{ "DMG <duncan@cpan.org>"}
{ ],}
{ "dynamic_config" : 1,}
{ "generated_by" : "ExtUtils::MakeMaker version 7.04, CPAN::Meta::Converter version 2.143240",}
{ "license" : [}
{ "unknown"}
{ ],}
{ "meta-spec" : {{}
{ "url" : "
http://search.cpan.org/perldoc?CPAN::Meta::Spec",}
{ "version" : "2"}
{ }},}
{ "name" : "Tmp",}
{ "no_index" : {{}
{ "directory" : [}
{ "t",}
{ "inc"}
{ ]}
{ }},}
{ "prereqs" : {{}
{ "build" : {{}
{ "requires" : {{}
{ "Test::More" : "0"}
{ }}}
{ }},}
{ "configure" : {{}
{ "requires" : {{}
{ "ExtUtils::MakeMaker" : "0"}
{ }}}
{ }},}
{ "runtime" : {{}
{ "requires" : {{}
{ "perl" : "5.006"}
{ }}}
{ }}}
{ }},}
{ "release_status" : "stable",}
{ "version" : "0.01"}
{}}}
Show quoted text-----Original Message-----
From: Ed J via RT [mailto:bug-ExtUtils-MakeMaker@rt.cpan.org]
Sent: 03 January 2015 16:32
To: DUNCAN@cpan.org
Subject: [rt.cpan.org #101205] Generated META.json incorrect on Win 7
<URL:
https://rt.cpan.org/Ticket/Display.html?id=101205 >
Could you update JSON::PP? There's now a version 2.27300.
Also, could you run these commands? (They're in Windows format, Linux shell is different syntax) perl -MJSON -e "die qq{$JSON::VERSION\n}, JSON->new->pretty->canonical->encode({ qw(hello one bye two) })"
perl -MJSON::PP -e "die qq{$JSON::PP::VERSION\n}, JSON::PP->new->pretty->canonical->encode({ qw(hello one bye two) })"
perl -MJSON::XS -e "die qq{$JSON::XS::VERSION\n}, JSON::XS->new->pretty->canonical->encode({ qw(hello one bye two) })"
They should all produce various version numbers plus the same JSON:
{
"bye" : "two",
"hello" : "one"
}
(I have JSON 2.90, JSON::PP 2.27203, JSON::XS 3.01)