Nodes/ComfyUI-SimpleChat/JSON -> Vars (Editable)
ComfyUI Node

JSON -> Vars (Editable)

Convert JSON to SIMPLECHAT_VARS (Mustache vars), with optional flatten + overrides.

By Moeblack·Created 8 months ago·Updated 6 months ago· 8
JSON -> Vars (Editable)
  • vars_in
  • vars
  • obj
json_text
strip_code_fencetrue
flatten_keystrue
prefix
override_modevars_in_overrides_json
overrides
CategorySimpleChat/Utils

Inputs (7)

NameTypeDefaultDescription
json_textSTRING
strip_code_fenceBOOLEANtrue
flatten_keysBOOLEANtrueFlatten nested keys into a.b.c and arr[0] style keys.
prefixSTRINGOptional prefix, e.g. anima. (will become prefix.key)
override_modeCOMBOvars_in_overrides_json2 options: vars_in_overrides_json, json_overrides_vars_in
overridesSTRING
vars_inoptSIMPLECHAT_VARS

Outputs (2)

NameTypeDescription
varsSIMPLECHAT_VARS
objSIMPLECHAT_JSON