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)