issue when convert TMSFNCGrid's JSONstring to JSONObject

Hi There,

I made a test to see if can convert a TMSFNCGrid instance to JSONstring and then convert JSONSting back to JSONObject using following code:

var
CurJSONObj : TJSONObject;
begin
CurJSONObj := TJSONObject.ParseJSONValue(TMSFNCGrid1.ToJSON) as TJSONObject;
// parse stream into JSON object
if Assigned(CurJSONObj) then
begin
showmessage(CurJSONObj.Tostring);
end;
end;

I got error saying Uncaught SyntaxError: Unexpected token **. I have included test to demonstrate my point. Any advice/ tip would be helpful.
76. test.zip (2.4 MB)

Thanks,

Hi,

It seems that there is an issue with the Delimiter under TMSFNCGrid1.Options.IO.Delimiter. You can clear the delimiter (set a single space character) and then export to JSON:

TMSFNCGrid1.Options.IO.Delimiter := ' ';

We'll investigate if we can encode the delimiter into JSON when exporting.

Thanks, Pieter for you kind reply.

That is really helpful. We are looking forward to further updates.

Cheers,
Roger