Remove comments from settings file before parsing json

I had a problem with loading my .jshintrc files from my project as they contain comments for documenting
the various settings.
Unfortunately the JSON.parse does not support comments in JSON strings.
This might be okay for normal JSON objects, but I think some jshint configuration parameters are not as descriptive that everybody understands it intention.
So I've implemented a little filter function  to remove all comments from the settings file before parsing it.