7965/convert-hashmap-object-java-again-convert-json-object-string
How to convert or cast hashmap to JSON object in Java, and again convert JSON object to JSON string?
You can use:
new JSONObject(map);
Hey, @Pooja, Before starting with anything you should ...READ MORE
You could probably check out Google's Gson: ...READ MORE
Here are two ways illustrating this: Integer x ...READ MORE
You can also use Java Standard Library ...READ MORE
When you don't know structure of json. ...READ MORE
for (Map.Entry<String, String> item : params.entrySet()) { ...READ MORE
Hi @Daisy You can use Google gson for more ...READ MORE
Hi, there is no as such difference ...READ MORE
Use java.util.Arrays: String res = Arrays.toString(array); System. ...READ MORE
Another workaround if you use apache commons-lang: int[] ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.