[fpc-pascal] Null values with JSON RPC

Michael Van Canneyt michael at freepascal.org
Sat Aug 8 15:24:35 CEST 2020



On Sat, 8 Aug 2020, Ryan Joseph via fpc-pascal wrote:

>
>
>> On Aug 8, 2020, at 7:37 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>> 
>> 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.
>
> Thanks again, I couldn't figure out what I did wrong! 
> Btw, can I just rebuild the fpc-json package?

Sure, I do it all the time.

> I ended up rebuilding everything to get just that one change. 
> The project was started using lazbuild so I'm kind of tied into that build system even though I don't 
> understand how it works very well. Normally I would just add paths to directories and I need but 
> that's not an option with lazbuilds package system.

if you have the sources of FPC somewhere, in a terminal, change to directory
"packages"

Then do a

make clean 
make install PREFIX=/some/dir/on/your/system

That should do the trick. It will simply rebuild & install all packages.

You can do the same in the packages/fcl-json directory, but then some other
files that depend on fcl-json will also need rebuilding. So that's only when
you know what you're doing...

Michael.


More information about the fpc-pascal mailing list