# Getting error on parsing JSON data from particle editor

**URL:** <https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706>\
**Category:** Questions\
**Tags:** particles\
**Created:** [July 21, 2020, 12:22pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706 "2020-07-21T12:22:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ankit_singh/32/9743_2.png) [@Ankit\_Singh](https://forum.babylonjs.com/u/Ankit_Singh)\
**Post date:** [July 21, 2020, 12:22pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706/1 "2020-07-21T12:22:40Z")

</div>

Hello guys,

i have created a particle system in playground editor and exported the JSON. I have two questions, how do I change particle texture path and why I am getting this error in Typescript

Object literal’s property ‘“customShader”’ implicitly has an ‘any’ type.

Thanks.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 21, 2020, 12:46pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706/2 "2020-07-21T12:46:33Z")

</div>

I think we will need a PG to be able to help.

Regarding the texture path, you have the `textureName` property that holds the path to the texture.

---

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ankit_singh/32/9743_2.png) [@Ankit\_Singh](https://forum.babylonjs.com/u/Ankit_Singh)\
**Post date:** [July 21, 2020, 12:52pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706/3 "2020-07-21T12:52:50Z")

</div>

Thanks for responding.

I am working with localhost. the JSON I exported from PG doesn’t have a property `textureName`. I changed the “url” to local asset path and also the “name” as well. I am assuming `ParticleSystem.Parse` will load the needed textures from that url or name. Am I doing it right?

Thanks.

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 21, 2020, 1:13pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706/4 "2020-07-21T13:13:40Z")

</div>

It won’t work for localhost, you need to setup a web server so that external files (like texture) can be downloaded.

Try [How to setup a local webserver for BabylonJs - Babylon.js Documentation](https://doc.babylonjs.com/resources/running_a_local_webserver_for_babylonjs) or you can search this forum for instructions on how to setup a local web server.

---

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ankit_singh/32/9743_2.png) [@Ankit\_Singh](https://forum.babylonjs.com/u/Ankit_Singh)\
**Post date:** [July 21, 2020, 1:16pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706/6 "2020-07-21T13:16:23Z")

</div>

Fair enough.

Can I Parse the properties and assign the particle texture manually?

---

<div class="post-metadata">

**Author:** ![Evgeni\_Popov](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/evgeni_popov/32/4432_2.png) [@Evgeni\_Popov](https://forum.babylonjs.com/u/Evgeni_Popov)\
**Post date:** [July 21, 2020, 1:20pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706/7 "2020-07-21T13:20:44Z")

</div>

Yes, or you can set the texture afterward, when the particle system has been created from the json.

In the json, the property is at the root level:  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/3/3ef6c0ab28f71575f9be5910368662a7c679c634.png)

---

<div class="post-metadata">

**Author:** ![Ankit\_Singh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/ankit_singh/32/9743_2.png) [@Ankit\_Singh](https://forum.babylonjs.com/u/Ankit_Singh)\
**Post date:** [July 21, 2020, 1:25pm UTC](https://forum.babylonjs.com/t/getting-error-on-parsing-json-data-from-particle-editor/12706/8 "2020-07-21T13:25:45Z")

</div>

Awesome. Got it working. Thank you. 🙂
