![]() ![]() Getting ready As the datasets in the previous recipe is very popular with the needs to serialize an object in a JSON object, send the object somewhere, and then recreate that object as it was before. I believe it has to do with the initialization of the new object but I can not understand the problemĬlass Function J2rec(const a: string var c:T):boolean Ĭlass function Trec4Json.rec2J(a: T): string // Record to Json StringĬlass function Trec4Json. An object has a state and methods to change its state, just like any actual object in the real world. The opposite, the de-serialization gives me an error " Internal: Cannot instantiate type. I wrote the following code that works ok only for the serialization and to be honest, I have not tested having records with class objects. I need to serialize and de-serialize different records types.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |