mohan mohan - 2 years ago 230
Java Question

How to convert hashmap to JSON object in Java

How to convert or cast hashmap to JSON object in Java, and again convert JSON object to JSON string?

Answer Source


 new JSONObject(map);

Other functions you can get from its documentation

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download