Java Servlet Response JSON in JSP using Gson

In Modern web applications, We get data from the server in JSON format and display data in JSP or HTML page using Front end library or frameworks like Angular, React, etc. This is similar to mobile app development. Here we will see how we can get JSON Response from the servlet and show it in … Read more

How to Convert Java Object to/from JSON using GSON

Gson is Java JSON library that is used to convert Java object to/from JSON GSON is developed by google. GSON Maven dependency is as below

You can also download Gson Jar from here Gson jar contains API to work with JSON GOal of GSON is provide simple methods to convert and receive JSON, Provides … Read more