Original address: Solve the problem of string string to object json format error in fasterxml
com.fasterxml.jackson.databind.ObjectMapper mapper = new com.fasterxml.jackson.databind.ObjectMapper(); // allows the use of unquoted field names mapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true ); // allows the use of single quotes mapper.configure(Feature.ALLOW_SINGLE_QUOTES, true ); mapper.readValue(string, javabean.class ) ;