{ "rootKey":{ "id":${id} } }
Try framing it into a string local variable in "Connectors In" and send it as input to the REST connector (parse the string to JSOn if connector expects).
Thanks
Bharathwaj RK