LPS-50770 make JSON RPC detection better