Replaced JSON library, improved CSP violation reporting