PerlでJSON形式データ作成・出力
Nid: 5
use Encode; use JSON; my $data_to_json = { name => $name, address => \@address, phone => \@phone }; print encode_json($data_to_json) . "\n";
関連記事
- 1 of 2
- next ›
use Encode; use JSON; my $data_to_json = { name => $name, address => \@address, phone => \@phone }; print encode_json($data_to_json) . "\n";