RTC Forums
November 23, 2024, 07:47:35 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Login
Register
RTC Forums
>
Subscription
>
Support
>
getting request data using TRtcDataServer(Sender).Read
Pages: [
1
]
« previous
next »
Print
Author
Topic: getting request data using TRtcDataServer(Sender).Read (Read 4315 times)
JeffW
RTC License+
Posts: 7
getting request data using TRtcDataServer(Sender).Read
«
on:
June 27, 2017, 11:24:52 AM »
Basic question here. I want to use the request data received from a Read (receiving a JSON string) but cannot find anything documenting how to parse it into an object. Response is easy, using
TRtcRecord, so looks like a good approach. How can I get received data into a TRtcRecord? or is there a better alternative?
Apologies for the newbie question.
Logged
D.Tkalcec (RTC)
Administrator
Posts: 1881
Re: getting request data using TRtcDataServer(Sender).Read
«
Reply #1 on:
June 27, 2017, 12:26:10 PM »
var data:
TRtcValue
;
begin
If Sender.Request.Complete then
begin
data:=
TRtcValue.FromJSON(
Sender.Read
)
;
...
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Dashboard
-----------------------------
=> General
=> 3rd-Party
=> Quick Start
-----------------------------
Subscription
-----------------------------
=> Support
Loading...