How can we read a JSON object in a JSP, Servlet or in any other Java program?
Answer
I would recommend using Gson for this. It has the advantage that it supports generics very well and it is also performant. I've posted a Gson#fromJson() example before here: Converting JSON to Java
No comments:
Post a Comment