public static JsonNode getFirstNode(final String text) {
        return getFirstNode(text, null);
    }
Return the first node of a JSON response.

@param text JSON text
@return the first node of the JSON response or null if exception is thrown
pac4j-oauth/src/main/java/org/pac4j/oauth/profile/JsonHelper.java