agave-metadata/metadata-core/src/main/java/org/iplantc/service/metadata/search/JsonHandler.java
/**
     * Get associationIds field from {@link JsonNode}
     *
     * @param associationNode {@link JsonNode} to parse field from
     * @return String list of given associationIds
     */
Get associationIds field from  JsonNode
@param associationNode  JsonNode to parse field from
@return String list of given associationIds
Get associationIds field from JsonNode @param associationNode JsonNode to parse field from @return String list of given associationIds
public List<String> parseAssociationIdsToList(JsonNode associationNode) {
        ArrayNode associationArrayNode = mapper.createArrayNode();
        List<String> associationList = new ArrayList<>();
        if (associationNode.has("associationIds")) {
            if (associationNode.get("associationIds").isArray()) {
                ArrayNode associationIdNode = (ArrayNode) associationNode.get("associationIds");
                for (int i = 0; i < associationIdNode.size(); i++) {
                    associationList.add(associationIdNode.get(i).textValue());
                }
            } else {
                if (associationNode.get("associationIds").isTextual())
                    associationList.add(associationNode.get("associationIds").asText());
            }
        }
        return associationList;
    }
public List < String > parseAssociationIdsToList ( JsonNode associationNode ) { ArrayNode associationArrayNode = mapper . createArrayNode ( ) ; List < String > associationList = new ArrayList < > ( ) ; if ( associationNode . has ( "associationIds" ) ) { if ( associationNode . get ( "associationIds" ) . isArray ( ) ) { ArrayNode associationIdNode = ( ArrayNode ) associationNode . get ( "associationIds" ) ; for ( int i = 0 ; i < associationIdNode . size ( ) ; i ++ ) { associationList . add ( associationIdNode . get ( i ) . textValue ( ) ) ; } } else { if ( associationNode . get ( "associationIds" ) . isTextual ( ) ) associationList . add ( associationNode . get ( "associationIds" ) . asText ( ) ) ; } } return associationList ; }
Get associationIds field from {@link JsonNode}
 @param associationNode {@link JsonNode} to parse field from
 @return String list of given associationIds
Get associationIds field from { @link JsonNode } @param associationNode { @link JsonNode } to parse field from @return String list of given associationIds