Boas Maurobio,
I had a look at the
JSON returned from the link in your code and I think I know the issue:
The member in the returned
JSON is
scientificName but you're asking for
scientificname.
I might be wrong, cuz I haven't confirmed it with code, but if I'm not mistaken,
JSON is case sensitive, well, at least the
fpjson implementation.
So if you make sure that all the members are correctly capitalized, I'm guessing that your code will run without a hitch
In order to minimize these issues and to make simple changes easier, I tend to have all the member names in constants:
const
cJSONScientificName = 'scientificName';
scientificname := jItem.FindPath(cJSONScientificName).AsString;
This way if I have to use the same member more than once, I don't have to make sure if I made a typo, cuz I'll use the auto-completion of Lazarus to complete the constant name.
Grande abraço,
Gus