Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to convert Java object to JSON file

Tags:

java

json

gson

Is there any way to convert Java object to JSON file ( I have array of objects and I want to export to JSON file, properties ) >

like image 682
Damir Avatar asked Dec 05 '25 14:12

Damir


2 Answers

Sure there is, I suggest you to try Google's API which provides a good boxed way to serialize/deserialize data from java objects to JSON and vice-versa.

like image 90
Jack Avatar answered Dec 07 '25 03:12

Jack


You can have the related answers here. Go through it.

  • A better Java JSON library?
like image 27
Saurabh Gokhale Avatar answered Dec 07 '25 02:12

Saurabh Gokhale



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!