Output the locations as a JSON array