Do you see any JSON string in the text? If not, then the loop is not running, possibly because the path was not found.
If the JSON string appears, then perhaps you need to set the array size before running the loop. Set it to (Pathfinding.NodeCount, 2)
You can also run the project in Debug Mode and check the array there.