HashMap<String, Object> JBerriosG = new HashMap<>;
ArrayList<String> technologies = new ArrayList<String>;
ArrayList<String> passions = new ArrayList<String>;
technologies.add("HTML5");
technologies.add("CSS3");
technologies.add("JavaScript");
technologies.add("Java");
technologies.add("SpringBoot");
technologies.add("Google Cloud Platform");
technologies.add("NodeJS");
technologies.add("Angular");
passions.add("Web development");
passions.add("Software development");
passions.add("VideoGames development");
passions.add("Martial Arts");
passions.add("VideoGames");
passions.add("Anime");
JBerriosG.put("Technologies",technologies);
JBerriosG.put("Passions",passions);
log.info(gson.toJson(JBerriosG));
{
"Technologies":[
"HTML5",
"CSS3",
"JavaScript",
"Java",
"SpringBoot",
"Google Cloud Platform",
"NodeJs",
"Angular"
],
"Passions":[
"Web development",
"Software development",
"VideoGames development",
"Martial Arts",
"VideoGames",
"Anime"
]
}