Hi,
I'm having a issue with json. I have the following test code:
Duca := TDUCA.Create;
....
NewDuca := TDUCA.Create;
NewDuca.FromJSON(TJSJSON.stringify(Duca)); <- this works ok.
NewDuca.FromJSON(Duca.ToJSON); <- Exception Invalid Json parser state. Expected state: 8
I have tested both genetared json on a json reader and they are read ok.
Any hints,
Thanks in advance,
Omar Zelaya