Strip comments if config cannot be parsed as JSON