*) Set rid in JSON response.