2
The application is printing in this json format but I don’t want it to print like this. For example I just want you to print "Translation": "Hi dear" and only. I am using eclipse and the java server language, as it does?
I am using an API but need to show the data I get from this api when I put to print with System.out.println(result);
It’s printing that way:
{
"character_count": 8,
"translations": [
{
"translation": "Oi querida"
}
],
"word_count": 2
}
help me, please help me.
– Aline
See if this helps: http://stackoverflow.com/questions/2591098/how-to-parse-json-in-java
– Miguel
No negativei, you need to convert this string into a hashmap or another structure/type and then manipulate it. put the code you have.
– rray
The question sounds like "do for me the conversion of this json". Add what you’ve tried, and, as @rray said, set a more objective title to the problem.
– user28595
I haven’t been able to do that yet......
– Aline