You are not logged in.
I have custom class serializers that calls aJSONSerializer.AddJSONEscape(['pairof',Fields]),
but I notice the Fields aren't written using the options I passed to the calling ObjectToJSON(myObject, myTextWriterWriteObjectOptions)
because in
procedure TTextWriter.AddJSONEscape(const V: TVarRec);
begin
with V do
case VType of
(* other cases *)
vtObject: WriteObject(VObject); // has no Options
end;
end;
Did I miss something ?
Last edited by Goulu (2019-03-26 13:02:06)
Offline