Throw error on invalid config json