@Override
    public String select(String text) {
        Object object = jsonPath.read(text);
        if (object == null) {
            return null;
        }
        if (object instanceof List) {
            List<?> list = (List<?>) object;
            if (list.size() > 0) {
                return toString(list.iterator().next());
            }
        }
        return object.toString();
    }
JsonPath selector.<br>
Used to extract content from JSON.<br>

@author code4crafter@gmail.com <br>
@since 0.2.1
webmagic-core/src/main/java/us/codecraft/webmagic/selector/JsonPathSelector.java