Convert string arrays to a JSON file