The =
sign is encoded to \u003d.
Hence you need to use disableHtmlEscaping().
You can use
Gson gson = new GsonBuilder().disableHtmlEscaping().create();
String s2 = gson.toJson(hm.toString());
For \/
turning into \\/
issue, the solution is
s2.replace("\\\\", "\\");