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

JSON is array of stuff  [ ... ] or hash (aka object) of stuff  { ... }

So dereference the arrays of objects you have (aohash)

push @fields, @{ $decoded }; ######<<<<<<<<

references quick reference

Later you make  $hashof{Purple} = \@stuff;