Custom Variables

    Documentation

    External JSON

    External JSON

    Use this type of Global Variable to access a value from an external JSON file.

    Name

    Use the variable’s name to reference it in the Formula fields of nodes and connections throughout your diagrams. See the example below.

    URL – the location of your JSON file (e.g.: https://api.binance.com/api/v3/ticker/24hr?symbol=ETHBTC)

    Path value: the path of the value to be retrieved from the file (e.g.: lastPrice)

    success

    If the content of your JSON file has an object property like in the following example:

    {"someGame":{"playerDamage":58,"playerHealth":33}}

    the correct path for retrieving the value for playerDamage is someGame.playerDamage

    Refresh

    Hit the Refresh button whenever you want to retrieve the latest value from the source defined in the previous fields.

    warning

    To prevent CORS issues, ensure the server configuration supports that the data is accessible by another domain.

    Contents

    All Rights Reserved © Machinations S.àr.l

    8217, Mamer, Luxembourg, accounts at BGL BNP PARIBAS, VAT number: LU30464284

    We use cookies for marketing and analytics. We also share information about your use of our site with our marketing and analytics partners who may combine it with other information that you’ve provided to them. You consent to our cookies if you continue to use our site. Learn more