# Generating \`JSON\` Data for Imbedding in Static Web Site

**URL:** <https://community.plotly.com/t/generating-json-data-for-imbedding-in-static-web-site/48834>\
**Category:** 📊 Plotly Python\
**Created:** [January 9, 2021, 1:32pm UTC](https://community.plotly.com/t/generating-json-data-for-imbedding-in-static-web-site/48834 "2021-01-09T13:32:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Royi](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/royi/32/13876_2.png) [@Royi](https://community.plotly.com/u/Royi)\
**Post date:** [January 9, 2021, 1:32pm UTC](https://community.plotly.com/t/generating-json-data-for-imbedding-in-static-web-site/48834/1 "2021-01-09T13:32:03Z")

</div>

Hello,

I am using `PlotLy` with MATLAB.  
I have the latest version to PlotLy MATLAB from [Plotly Graphing Library for MATLAB](https://github.com/plotly/plotly-graphing-library-for-matlab).

I want to embed the figures in my static web page which is based on Hugo.  
I found this tutorial - [Including Plotly Figures in Hugo Posts](https://ig248.gitlab.io/post/2018-11-05-plotly-sample/).

In the tutorial the user generates `json` file to be embedded in the code of the JS library.  
It seems the Plotly Python library can generate those `json` files.  
I was wondering, how can I generate the same `json` files using the MATLAB version of PlotLy?

Thank You.

---

<div class="post-metadata">

**Author:** ![Fenix](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fenix](https://community.plotly.com/u/Fenix)\
**Post date:** [May 14, 2022, 12:13pm UTC](https://community.plotly.com/t/generating-json-data-for-imbedding-in-static-web-site/48834/2 "2022-05-14T12:13:54Z")

</div>

Hello, I have the exact same question with the exact same purpose 🙂 Anyone? I didn’t see a point starting a new thread.

Thanks!
