You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
need send json to client server which should not have any fields other than those specified.
so currently I am using this method.
var JSONObject: TJSONObject;
begin
JSONObject := TJSONObject.ParseJSONValue(JSonString) as TJSONObject;
try
JSONObject.RemovePair('options');
Result := JSONObject.ToString;
finally
JSONObject.Free;
end;
end;
if i request AsJson from class, then i will get json response with TJsonOption. how to remove it?
{ "id": "6", "data": "Test" "options": [ "joDateIsUTC", "joDateFormatISO8601" ] }
The text was updated successfully, but these errors were encountered: