This is a dumb question that is taking me hours but which a monk would solve in seconds.
Below is code that returns a JSON object.
use strict; use warnings; use Mojo::UserAgent; my $ua_food; my $json_food; my $url_food; $url_food = "https://api.nal.usda.gov/fdc/v1/food/170581?api_key=Oc4b +D3tFWgPAscW0R0gBRivwqEdt0N182PXCGNQO"; $ua_food = Mojo::UserAgent->new; $json_food = $ua_food->get($url_food)->res->json;
Please tell me how to extract the values for fdcId and the various nutrient items.
Thank you.
In reply to decoding a JSON object by anautismobserver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |