Json Data in the Browser
Often you'll use JavaScript to work with JSON data in your browser. This data can be transferred in three common ways:
- Inline in a
<script>
tag where it's assigned to a variable - Inline in some attribute like
<div data="{...}">
- In a WebApi call from the Headless API or from Custom WebAPIs
To access the WebAPIs you should check out the JS APIs
History
- Added in 2sxc 1.0