utility to parse hqmf into a json representation