Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Hairy Pixels via fpc-pascal
> On Sep 28, 2022, at 10:32 PM, Michael Van Canneyt > wrote: > > Of course, as AsString will not work on a TJSONObject. AsString will only > work on the simple types, not on the object or array types or null. Of course. :P Ok I was just being stupid and let one of those calls slip in as I

Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Michael Van Canneyt via fpc-pascal
On Wed, 28 Sep 2022, Michael Van Canneyt via fpc-pascal wrote: On Wed, 28 Sep 2022, Hairy Pixels via fpc-pascal wrote: Ok I narrowed down this bug I get with 3.2.2 to TJSONParser. I’m so confused as to what changed. FormatJSON prints the JSON as expected but AsString crashes and gives th

Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Michael Van Canneyt via fpc-pascal
On Wed, 28 Sep 2022, Hairy Pixels via fpc-pascal wrote: Ok I narrowed down this bug I get with 3.2.2 to TJSONParser. I’m so confused as to what changed. FormatJSON prints the JSON as expected but AsString crashes and gives the error I was seeing from the RPC which it trapped as an excepti

Re: [fpc-pascal] TJSONParser crash

2022-09-28 Thread Sven Barth via fpc-pascal
Hairy Pixels via fpc-pascal schrieb am Mi., 28. Sep. 2022, 16:17: > Ok I narrowed down this bug I get with 3.2.2 to TJSONParser. > > I’m so confused as to what changed. FormatJSON prints the JSON as > expected but AsString crashes and gives the error I was seeing from the RPC > which it trapped