Please advice how to convert a String to JsonObject using gson library.
String
JsonObject
gson
What I unsuccesfully do:
String stri
Note that as of Gson 2.8.6, instance method JsonParser.parse has been deprecated and replaced by static method JsonParser.parseString:
JsonParser.parse
JsonParser.parseString
JsonObject jsonObject = JsonParser.parseString(json).getAsJsonObject();