java convert json to hashmap code example
Example 1: json to hashmap java stream
Map<String, Object> retMap = new Gson().fromJson(
jsonString, new TypeToken<HashMap<String, Object>>() {}.getType()
);
Example 2: convert hashmap into json
Gson gson = new Gson();
String json = gson.toJson(myObject);