change data from string to array in topic server request (frontend)