parser for generating JSON file for mongodb import