According to the docs, GenerateJSON() takes an optional property expanded (that defaults to False) that includes whitespace to make the string more human-readable (closed in Feedback case 37033).
However, this doesn’t work for me. I always get back compact JSON.
I see @Thom_McGrath was banging his head against a brick wall with this bug back in November but got no response from Xojo engineers.
Is this a regression? I’m running Xojo 2021 r3.1 on an M1 MBP.
It did work in 2020r1.1. When I updated to 2021r3.1 is when I found it had stopped working. I think it happened at the same time they removed the default UTF8 encoding.
The “best” workaround I’ve been able to come up with is using MBS to parse and regenerate the JSON. It does this very fast, so it’s not much of a performance hit. But the JSON it generates can be a bit weird, so I want to avoid it.
Wow… just half an hour before my post. I suppose I should have checked first. But I also would have expected to get an email from Feedback. Guess that’s broken again.
AFAIK they only send out emails when its verified as shipped because something might come up that means it cant make it into the release and they don’t want to get peoples hopes up. I think it was mentioned the other day somewhere.