convert gchempaint files to a JSON representation