Reputation: 41
I have a user entry form with the following fields :
I want to convert its value to JSON and save it in a database. How can I achieve this? Which library can I use ?
Upvotes: 0
Views: 2053
Reputation: 1136
At server side in servlet save all request parameters to corresponding bean and then you can convert using google's gson library for more info check this tutorial
Upvotes: 1
Reputation: 5972
Refer the following steps:
You will probably need GSON jar , Jackson jar.
Upvotes: 0
Reputation: 9474
For example:
Upvotes: 0