Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to Convert Json String to Json Object Containing XML

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 58
    Answer it

    I want to convert json string to json object. I am using the following method.

     

    public List<BusinessProcess> convertJsonToObject(String json)
                throws JsonParseException, JsonMappingException, IOException {
            ObjectMapper mapper = new ObjectMapper();
            List<BusinessProcess> myObjects = mapper.readValue(json, new TypeReference<List<BusinessProcess>>() {});
            return myObjects;
        }

     

    The problem is that my json string has XML content in it, which gives error because of double quotes. 
    What should I do?

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: