If you are new to JSON, start here:
https://www.json.org/ On the RTC Server side, if you get your JSON data as part of the request content body (POST method), you can read that data as any other content using the "Sender.Read" (as a string) or "Sender.ReadEx" (as a byte array) method in the "OnDataReceived" event of your "RtcDataProvider" component. You can use the string or array you receive there with any JSON parser to access each element contained within the JSON string individually.
For example, if you KNOW that you are getting a JSON object ( JSON string enclosed in
{ } ) in a HTTP POST request and want to get a TRtcRecord instance containing that JSON object (TRtcRecord is also used with RTC Remote functions), you could implement the "OnDataReceived" event of your "RtcDataProvider" component like this ...
procedure myModule.myDataProvOnDataReceived(Sender:TRtcConnection);
var myJSON:
TRtcRecord;
begin
if
Sender.Request.Complete then
begin
myJSON:=
TRtcRecord.FromJSON(
Sender.Read);
try
// use myJSON to access JSON objects and arrays ...
finally
myJSON.Free;
end;
end;
end;