file / json as parameter