I'm using Google Gson 2.3.1 library.
When I receive the following json string:
{"PC" : "Domain\Host"}
I receive in POJO DomainHost string without backslash. What is the correct way to deal with it?
- Ask from serializer man to add an escape backslash like that Domain\\Host?
- Check for backslashes on my side and insert escaping backslash prior to deserializing?
- Maybe GSON library know to deal with it?
Didn't find anything not in manual neither in google that can help me. Currently I tend to choose 2nd option, but not sure that it's a good idea.
Thank you.