Skip to main content
10.10 JSON Source
Omma Sign avatar
Written by Omma Sign
Updated over a week ago

INCLUDE ADD-ON IN THE CONTENT

  • Go to Contents.

  • Click on the content that you want to use.

  • Click on the Add-ons button.

  • Open the Add-on Marketplace.

  • Click on JSON Source and click Select.

  • JSON Source add-on is added to your content.

  • Hover over the add-on and click Configure.

CONFIGURE ADD-ON

  • Enter the JSON Source URL into the URL input.

  • Check the below cases when writing a URL. You can use a local IP address here.

http://192.168.0.29:8091
  • You can use programmatic fields from Device & Shop attributes. You can also use the device and shop id. The example is below:

http://{{shop.attribute.local_ip}}:{{shop.attribute.port}}/pricing.json?{{device.id}}

DEFINE VARIABLES

  • Enter the JSON paths and variables. You can create a default value for each variable, they will be displayed if the corresponding value is null.

  • If you select Skip if Empty option, scenes including this variable will be skipped if it is null.

  • You can add/remove variables as you wish.

  • Click Done when you are finished.

ADD VARIABLES IN SCENE

  • Click on Go Back to Content.

  • Hover over the scene item that you will use variables, and click Scene Designer.

  • Add a Text from the upper menu and then write down the variable name inside mustache parentheses. --> {{example}}

  • Repeat this process for every variable.

  • Click Save on top right when you are done.

  • Request for Approval, Approve and Publish your content.

Did this answer your question?