[fpc-pascal] Null values with JSON RPC
Joost van der Sluis
joost at cnoc.nl
Mon Aug 10 23:41:47 CEST 2020
Op 08-08-2020 om 15:24 schreef Michael Van Canneyt:
> 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...
Or when your fpc-setup is alright:
cd packages/fcl-json
fppkg install -o -gl
The "-o -gl" part is to include debug-info. It will also automatically
recompile all dependencies. (So no need to know what you are doing -
Michael's words)
Regards,
Joost.
More information about the fpc-pascal
mailing list