Get reponse request

Hello,

How to get the value of the “id” that exists in the response of my request ?

{ “data”:
{“id”: “2”
}
}
I try this but doesn’t work.

test = WebUI.getText(response.getResponseText(),‘data.id’)
KeywordUtil.logInfo(test)