filename passed as a json object