http://www.perlmonks.org?node_id=1049048


in reply to Merging multiple JSON files into one using JSON::XS

I've never used this module but what happens if you substitute this:
$uuts->{People} = [ @fields ];

with this (array ref):

$uuts->{People} = \@fields;

or this:

$uuts->{People} = @fields;

Replies are listed 'Best First'.
Re^2: Merging multiple JSON files into one using JSON::XS
by walkingthecow (Friar) on Aug 12, 2013 at 02:49 UTC
    $uuts->{People} = \@fields; yields the same thing, and $uuts->{People} = @fields; yields what you see below:
    { "People" : 24 }
    :)