public static Map toMap(String json) {
        try {
            return mapper.readValue(json, Map.class);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
public static Map toMap ( String json ) { try { return mapper . readValue ( json , Map . class ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
Convert a JSON map to a Java Map

@param json JSON map
@return Java Map.