Hi, Danijel !
I have problems with json-rpc 2.0 requests generated by PHP function "json_encode".
This function generate json object like this (looks like parameters in alphabetical order):
{"jsonrpc":"2.0","id":1,"method":"engineGetStatus","params":[]}
While your implementation expect this:
{"jsonrpc":"2.0","method":"engineGetStatus","params":[],"id":1}
I think request parameters order should be not important. So, this variants should be also valid:
{"id":1, "jsonrpc":"2.0","method":"engineGetStatus","params":[]}
{"method":"engineGetStatus","params":[],"id":1,"jsonrpc":"2.0"}
etc
As a quick fix a modify TRtcValueObject.json_checkFunctionType to:
if ( json_checkTag(RTC_QMETHOD,s,at2) or
json_checkTag(RTC_QPARAMS,s,at2) or
json_checkTag(RTC_QID,s,at2) )then // added this line
Result:=rtc_Function;
But it's not a final solution. It's only handle requests where "id" is second paramter.
Hope you can fix it in next version.
Thank you !