Changed to return json from the file