Read json file solved. Calls to create adj.mat. simplified.