Problem with loadJSONArray example

I know, you got it working and I just agreed.

I am referring to:

please detail how you make the file, possibly we not know some tricks about the
processing 3.5.3 IDE / editor

and to:

means all that // must be deleted
the example documentation should
use

/*
code
*/

maybe I got you wrong

found here:
https://processing.org/reference/loadJSONArray_.html

paste into processing

// [
//   {
//     "id": 0,
//     "species": "Capra hircus",
//     "name": "Goat"
//   },
//   {
//     "id": 1,
//     "species": "Panthera pardus",
//     "name": "Leopard"
//   },
//   {
//     "id": 2,
//     "species": "Equus zebra",
//     "name": "Zebra"
//   }
// ]

remove all // in a section: select with mouse, Menu Edit | use Comment/Uncomment…

Chrisir