How do I go about debugging a JSON error like that shown in the videowww.loom.com/.../8b757da9f50e4585b93907988fc7587f
Discussion posts and replies are publicly visible
I would try to make that JSON somehow visible in that interface. Then, there is a JSON validator plugin you could use to check the validity.