in reply to Parsing Data Help!
#!/usr/bin/perl use warnings; use strict; use JSON; use Data::Dumper; my $j = << '__STRUCT__'; [ {"account":"123456","name":"Comps"}, {"account":"123456","name":"MIT"}, {"account":"123456","name":"Engine"}, {"account":"123456","name":"Cars"}, {"account":"123456","name":"The Company Inc."}, {"account":"123456","name":"XTCo. Inc."}, {"ZIP":"02111","CITY":"New York, NY","STREET_NAME_TWO":"","STREET_NA +ME_ONE":"1 SAMWE SQUARE"}, [ {"order":"542","suggested":"250"} ], [ {"cd":"Joe Doe"}, {"cd":"Mary Lou"}, {"cd":"Jim D. Mark"}, {"cd":"Charles Dmond"}, {"cd":"Justin Dwo"} ] ] __STRUCT__ my $p = from_json($j); print Dumper $p;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Parsing Data Help!
by Anonymous Monk on Mar 15, 2013 at 15:13 UTC | |
by choroba (Cardinal) on Mar 15, 2013 at 15:23 UTC | |
by hdb (Monsignor) on Mar 15, 2013 at 15:20 UTC | |
by Anonymous Monk on Mar 15, 2013 at 15:44 UTC | |
by Anonymous Monk on Mar 15, 2013 at 15:21 UTC |