#1 mORMot 1 » Serialize record to json ignore field » 2020-05-27 14:18:43

Jailson
Replies: 2

I'm serialize record to json using RecordSaveJSON, and I need to ignore a field.
Ex: 
TMyRecord = record
      id: string;
      name: string;
      last_name: string;
end;
I need to ignore the id field when converting to json -> { "name":"john",   "last_name":"wick"}

Board footer

Powered by FluxBB