![]() ("artist.getName() = " + artist.getName()) Īnd here is the definition of Artist class. I am trying to convert a java string into json object. ObjectMapper mapper = new ObjectMapper() Īrtist artist = mapper.readValue(json, Artist.class) How to convert Java String to JSON Object Ask Question Asked 8 years, 2 months ago Modified 6 years, 2 months ago Viewed 180k times 19 This question has been asked earlier, but I am unable to figure out the error in my code from the responses to those questions.
0 Comments
Leave a Reply. |