This 400-line js file in
koszko branch implements a declarative way of enforcing some format on JSON we parse. Unfortunately, I have not yet made any documentation for it. Please nag me if you need this. Otherwise, I shall instead move on to handling of repo-served JSON (that's what I wrote this JSON sanitizer for in the first place).