C4 Web To Variables - Supported Responses

C4 Web To Variables - Supported Responses

Web To Variables only supports JSON Type Data: https://en.wikipedia.org/wiki/JSON  

Warning
XML is NOT Supported

An Example JSON response is below. Please note, that variable arrays ( between the "[" and "]" brackets) needs to provide consistent data between calls to simplify programming  
  1. {
       "code" : "303",
       "response" : "OK",
       "users" :
       [
          "Joe",
          "Andy"
      ]
    }

To identify if data is JSON, it can be validated using a JSON Validator such as: https://jsonformatter.curiousconcept.com/
    • Related Articles

    • C4 Web To Variables - Identifying Variables and their contents

      Variables must first be created by configuring the driver, and using the AutoSetup Variables Action To identify all available variables created during the AutoSetup Variables action and their contents, use our Control4 Variables Knowledge base ...
    • Control4: Identifying Available Variables and Current Values

      All Available Driver Variables for devices can be located in the Variables Agent. Please note: Some drivers such as Web To Variables will not display all available variables until configuration of the driver is complete 1. In Composer Pro, switch to ...
    • Control4 C-BUS: System Requirements

      System Requirements You have access to Composer Pro and your Control4 system. Composer Express is not supported. Your Control4 system is on OS 3.4.0+. Earlier Control4 OS Versions are not officially supported. X4 is supported The CBus system is fully ...
    • Control4 C-BUS: Multiple Network (Remote CBUS Network) Support

      Does this driver support communication with remote C-Bus networks? The current driver does not support commands to and from remote C-Bus networks. To use this driver on projects with multiple C-Bus networks, you will need to install a C-Bus interface ...
    • Control4 UniFi Protect / Access / Network: Receiving Custom Webhooks

      This guide describes how to trigger actions in control4 based on custom UniFi Webhooks. This can be used to perform actions based on advanced UniFi triggers which may not be handled directly. Procedure The Chowmain UniFi Drivers must be 20251215 or ...