fix generation of json file and tests
Merge branch 'json-output-preprocessed' of https://github.com/mimmi20/browscap into json-output-preprocessed