Convert plane text with forward slash from rest API to String with Gson
I have to retrieve data from a rest api which just returns a plane String without any json format, which also contains a forward slash which shouldn't be escaped. When I for example try to parse this String: foo/bar which I can't change with this GsonBuilder:
val gson: Gson by lazy {
GsonBuilder()
.registerTypeAdapter(LocalDate::class.java, LocalDateSerializer())
.registerTypeAdapter(LocalDate::class.java, LocalDateDeserializer())...