gets json from external file