in reply to Re: parse out json message
in thread parse out json message

i tried this and dont get anything out

for my $match (@{$parse_json->{teams}}) {

Replies are listed 'Best First'.
Re^3: parse out json message
by Corion (Patriarch) on Sep 15, 2025 at 19:50 UTC

    teams is not at the top level. You have at least leagues on your way into the data structure.

    Consider an online viewer like, say https://jsoncrack.com/editor or maybe https://jsonviewer.stack.hu/ to visualize the data structure.

    You have to learn to read JSON and how to translate that structure into Perl.

      i still get zero response

      for my $match (@{$parse_json->{leagues}}) { my $teamname = $match->{teams}[0]{team}{shortDisplayName};