Tolerant json parsing

Attempts to fix broken config files