[fpc-pascal] Null values with JSON RPC

Michael Van Canneyt michael at freepascal.org
Sat Aug 8 14:37:53 CEST 2020



On Sat, 8 Aug 2020, Ryan Joseph wrote:

>
>
>> On Aug 7, 2020, at 9:09 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>>
>> try
>>    B:=Not Assigned(FOnRestoreProp);
>
> I just rebuilt the compiler (couldn't figure out how to recompile just the
> fpc-json package) and got the new changes but there seems to be a
> regression and I'm not getting anything deserialized now.  Maybe something
> else is the culprit but it's totally broken now for some reason.  Can you
> test and confirm this?

Confirm there was an error. Fixed, and added testcase.

I also added jdoNullClearsProperty; a null will then clear the property with
the 'natural' empty value. It has precedence over jdoIgnoreNulls.


Michael.


More information about the fpc-pascal mailing list