# Problems loading a GUI from JSON

**URL:** <https://forum.babylonjs.com/t/problems-loading-a-gui-from-json/34917>\
**Category:** Bugs\
**Tags:** gui\
**Created:** [October 18, 2022, 6:52pm UTC](https://forum.babylonjs.com/t/problems-loading-a-gui-from-json/34917 "2022-10-18T18:52:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cad\_master](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@cad\_master](https://forum.babylonjs.com/u/cad_master)\
**Post date:** [October 18, 2022, 6:52pm UTC](https://forum.babylonjs.com/t/problems-loading-a-gui-from-json/34917/1 "2022-10-18T18:52:42Z")

</div>

Hi all,

I think there is a problem with loading a GUI from json in version 5.28.0.

```auto
VM76:1 Uncaught SyntaxError: "undefined" is not valid JSON
    at JSON.parse (<anonymous>)
    at XMLHttpRequest.<anonymous> (babylon.gui.min.js?t=1665992019713:1:286823)

```

To reproduce the bug

> **[Babylon.js Playground](https://playground.babylonjs.com/#SWI883)**
>
> Babylon.js playground is a live editor for Babylon.js WebGL 3D scenes

---

<div class="post-metadata">

**Author:** ![shantu](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/shantu/32/11267_2.png) [@shantu](https://forum.babylonjs.com/u/shantu)\
**Post date:** [October 18, 2022, 7:59pm UTC](https://forum.babylonjs.com/t/problems-loading-a-gui-from-json/34917/2 "2022-10-18T19:59:55Z")

</div>

yes, it is even the demo gui examples are not working : [Babylon.js Playground](https://playground.babylonjs.com/#SWI883)

---

<div class="post-metadata">

**Author:** ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)\
**Post date:** [October 18, 2022, 9:58pm UTC](https://forum.babylonjs.com/t/problems-loading-a-gui-from-json/34917/3 "2022-10-18T21:58:33Z")

</div>

I might be wrong but I think @carolhmj fixed it today so it should be all good by tomorrow ?

---

<div class="post-metadata">

**Author:** ![carolhmj](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/carolhmj/32/25918_2.png) [@carolhmj](https://forum.babylonjs.com/u/carolhmj)\
**Post date:** [October 19, 2022, 11:48am UTC](https://forum.babylonjs.com/t/problems-loading-a-gui-from-json/34917/4 "2022-10-19T11:48:51Z")

</div>

Yes it was merged so it should be on the next release 🙂
