Download graph and serialize as JSON