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 ) >
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.
You can have the related answers here. Go through it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With