added rec2json
added rec2json