How to call REST server with JSON

RO request:

{"version":"1.1",
 "method":"service_name.method_name",
 "params":
     {
// some data here
     }
}

RO response:

{"version":"1.1",
 "result":
     {
// some data here
     }
}

You can accept any JSON requests from client and transform them into RO compatible JSON request in the OnCustomResponseEvent event.
see more details at Using OnCustomResponseEvent in a ROSDK Server snippet