Adjacency matrix JSON response complete.

No idea if this really works or not.
It should work in theory.
Testing soon after implementing JS code in the web-client