Main function takes either a group of MARC/XML records or a single record and outputs json.
Finessing.