Table of Contents

Json Data in the Browser

you are here (click to zoom) - discover the stack

Often you'll use JavaScript to work with JSON data in your browser. This data can be transferred in three common ways:

  1. Inline in a <script> tag where it's assigned to a variable
  2. Inline in some attribute like <div data="{...}">
  3. In a WebApi call from the Headless API or from Custom WebAPIs

To access the WebAPIs you should check out the JS APIs

History

  1. Added in 2sxc 1.0