file and url/json parsing