agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/JsonHandler.java
/**
     * Parse JsonString {@code userQuery} to {@link Document}
     * Regex will also be parsed
     *
     * @param strJson JsonString to parse
     * @return {@link Document} of the JsonString {@code userQuery}
     * @throws MetadataQueryException if invalid Json format
     */
Parse JsonString  userQuery to  Document
Regex will also be parsed

@param strJson JsonString to parse
@return  Document of the JsonString  userQuery
@throws MetadataQueryException if invalid Json format
Parse JsonString userQuery to Document Regex will also be parsed @param strJson JsonString to parse @return Document of the JsonString userQuery @throws MetadataQueryException if invalid Json format
public Document parseUserQueryToDocument(String strJson) throws MetadataQueryException {
        Document doc = new Document();
        if (StringUtils.isNotEmpty(strJson)) {
            try {
                doc = Document.parse(strJson);
                for (String key : doc.keySet()) {
                    if (doc.get(key) instanceof String) {
                        doc = parseRegexValueFromDocument(doc, key);
                    }
                }
            } catch (Exception e) {
                throw new MetadataQueryException("Unable to parse query ", e);
            }
        }
        return doc;
    }
public Document parseUserQueryToDocument ( String strJson ) throws MetadataQueryException { Document doc = new Document ( ) ; if ( StringUtils . isNotEmpty ( strJson ) ) { try { doc = Document . parse ( strJson ) ; for ( String key : doc . keySet ( ) ) { if ( doc . get ( key ) instanceof String ) { doc = parseRegexValueFromDocument ( doc , key ) ; } } } catch ( Exception e ) { throw new MetadataQueryException ( "Unable to parse query " , e ) ; } } return doc ; }
Parse JsonString {@code userQuery} to {@link Document}
 Regex will also be parsed
Parse JsonString { @code userQuery } to { @link Document } Regex will also be parsed