public static void parseJsonPathElements ( Element validateElement , Map < String , Object > validateJsonPathExpressions ) { List < ? > jsonPathElements = DomUtils . getChildElementsByTagName ( validateElement , "json-path" ) ; if ( jsonPathElements . size ( ) > 0 ) { for ( Iterator < ? > jsonPathIterator = jsonPathElements . iterator ( ) ; jsonPathIterator . hasNext ( ) ; ) { Element jsonPathElement = ( Element ) jsonPathIterator . next ( ) ; String expression = jsonPathElement . getAttribute ( "expression" ) ; if ( StringUtils . hasText ( expression ) ) { validateJsonPathExpressions . put ( expression , jsonPathElement . getAttribute ( "value" ) ) ; } } } }
Parses validate element containing nested json - path elements .