in reply to Merging multiple JSON files into one using JSON::XS
I have no idea how/why - it makes no sense to me. Would love to be enlightened on what the "right" way is, and why this works.my $pretty_printed_unencoded = $coder->encode ({People => @fields });
Update:: After seeing kcott's(++) post below, I see the error of my ways.
His solution is more elegant, but I made mine work by coding:
The previous version at top of this post worked for me for ONE file.my $pretty_printed_unencoded = $coder->encode ({People => [map {@$_} +@fields] });
My goal ... to kill off the slow brain cells that are holding me back from synergizing my knowledge of vertically integrated mobile platforms in local cloud-based content management system datafication.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Merging multiple JSON files into one using JSON::XS
by walkingthecow (Friar) on Aug 12, 2013 at 13:01 UTC |