Receive graph json from server