Nodes/Mememage/Mememage JSON
ComfyUI Node

Mememage JSON

The 'I already have the JSON' node for your record fields

By sememtac·Created 3 months ago·Updated 2 months ago· 1
Mememage JSON
    • fields
    fields_json{}

    Look at the class name, then look at what the UI calls this node, because they disagree and it confuses people. The class is MememageFields, but ComfyUI displays it as "Mememage JSON" - and that's actually the honest name. This is the "I already have the data as JSON" node. Paste (or wire) a JSON object, and it becomes the record's fields, validated and passed through.

    What it's for

    Mememage records are just JSON objects of whatever fields you choose - creator name, series, license, tags, generation data, anything. There are two ways to get that JSON in:

    • This node, Mememage JSON: bring a whole object in at once.
    • Mememage Field + Mememage Fields: build fields up one key/value at a time.

    You reach for this one when the data already exists somewhere. You scripted a batch of metadata, you have a JSON blob from a previous run, you want to paste a prepared object and be done. Its one optional input, fields_json, is a multiline box with a placeholder showing the shape it wants:

    { "creator": "catmemes", "series": "dawn", "tags": ["lake", "mist"] }
    

    It validates the JSON - malformed input raises rather than silently passing garbage through. The output is a single fields object, which you wire into Mememage Encode's fields socket, or into a Mememage Fields node (the gatherer) to merge with hand-entered fields.

    Where it fits

    The two paths merge nicely. Hand-built fields from Field nodes cover the values you want to see and edit on the graph; this node covers the block of data you already have and don't want to re-type into a dozen widgets. Wire its fields output into the gatherer's base input and the hand-entered fields merge on top.

    Installing it

    Same pack as every Mememage node. ComfyUI Manager → search "Mememage" → Install → restart, or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/sememtac/mememage-comfy
    <ComfyUI-python> -m pip install mememage
    

    Restart and it shows up under Mememage/Fields (listed as "Mememage JSON"). No dependencies beyond the mememage core library.

    Common issues

    • "I searched for Mememage Fields and found two nodes." Right - the class MememageFieldList displays as "Mememage Fields" (the gatherer), and this one displays as "Mememage JSON" (the paste-a-block node). Different jobs, similar names. If you want to merge several Field nodes, you want the other one.
    • "It errors on my input." It's strict by design - the tooltip says validated. The box expects a JSON object (keys and values), not a bare string or array. Fix the JSON rather than fighting the node.
    • Want to build fields one at a time? Wrong node. That's Mememage Field + the Fields gatherer - this one is for objects you already have.
    CategoryMememage/Fields

    Inputs (1)

    NameTypeDefaultDescription
    fields_jsonoptSTRING{}A JSON object to use as the record's fields. For entering fields one at a time, use Mememage Field / Mememage Fields instead.

    Outputs (1)

    NameTypeDescription
    fieldsSTRING