#1 2015-01-05 11:44:18

martin.suer
Member
Registered: 2013-12-15
Posts: 76

TTextWriter.AddJSONReformat raises AV

Hi,

TTextWriter.AddJSONReformat does support empty arrays but not empty objects.

So the following JSON leads to an AV if passed to AddJSONReformat

{ "empty": {} }

I came across this because I use the function with some non mORMot generated JSON which contains such empty objects.

Martin

Offline

#2 2015-01-05 18:51:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: TTextWriter.AddJSONReformat raises AV

Should be fixed by http://synopse.info/fossil/info/7d37d54771

Thanks for the feedback!

Offline

Board footer

Powered by FluxBB