String to UUID in JSon query


I have created a rest-query.xml file and added the following query

<query name="findUser" entity="business$BusinessUser" view="user.browse">
    <jpql><!&#91;CDATA&#91;select b from business$BusinessUser b where = :id&#93;&#93;></jpql>
        <param name="id" type="java.utils.UUID"/>

When I try to send a JSon request to this query i get an exception that tells me that i can put a String in ID which is of type UUID.
How can I convert JSON String to be converted to UUID?

The Query in Java is as follow and Map<String, String> can’t be changed

protected Map<String, String> getParams() throws AuthFailureError {
    Map<String, String> params = new HashMap<String, String>();
    try {
        JSONObject jUserInfo = new JSONObject(userInfo&#91;0&#93;);
        params.put("id", jUserInfo.getString("id"));
    } catch (JSONException e) {
    return params;

Any Ideas

Which value returns jUserInfo.getString(“id”)?
If I have correctly understood, you should prepare the value before inserting it into JSON. UUID should have the same format as you can see in the documentation.