Skip to content

Use OUTPUT_IS_LIST=True for Get JSON Field with multiple_results=True #1

@geroldmeisinger

Description

@geroldmeisinger

(see original discussion here: https://www.reddit.com/r/comfyui/comments/1pd1n96/comment/nskb7hs/)

Image

If HTTP Get JSON Field: multiple_results=True on an array the output value is a array-like string ["cat", "dog", "rat"] which doesn't integrate well with ComfyUI. However, for lists ComfyUI provides the custom node property OUTPUT_IS_LIST=(True,) which make the downstream nodes process the items sequentially. Here I had to manually prepare the string to make it work, by removing the tokens [ ] " and then separate the string into an output list.

If you want to know more about output lists see: https://github.com/geroldmeisinger/ComfyUI-outputlists-combiner

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions