# Json import from php file

**URL:** <https://community.thunkable.com/t/json-import-from-php-file/805167>\
**Category:** Questions about Thunkable X\
**Created:** [September 9, 2020, 10:55pm UTC](https://community.thunkable.com/t/json-import-from-php-file/805167 "2020-09-09T22:55:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![haiflosse](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@haiflosse](https://community.thunkable.com/u/haiflosse)\
**Post date:** [September 9, 2020, 10:55pm UTC](https://community.thunkable.com/t/json-import-from-php-file/805167/1 "2020-09-09T22:55:18Z")

</div>

Hi.  
I want to import a json file from a php file.

But always when i press my button the thunkable app will close.  
Here my project:  
[https://x.thunkable.com/projects/5f54e19fc0ba1d857bf2c50b](https://x.thunkable.com/projects/5f54e19fc0ba1d857bf2c50b)  
Hope somebody can help me there.  
Kindly regards

---

<div class="post-metadata">

**Author:** ![secondaryaccount](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/secondaryaccount/32/91441_2.png) [@secondaryaccount](https://community.thunkable.com/u/secondaryaccount)\
**Post date:** [September 9, 2020, 11:12pm UTC](https://community.thunkable.com/t/json-import-from-php-file/805167/2 "2020-09-09T23:12:16Z")

</div>

I’ll have to look at the JSON response to know for sure (I’m on my phone right now) but try taking out the Generate JSON from Object block.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 9, 2020, 11:30pm UTC](https://community.thunkable.com/t/json-import-from-php-file/805167/3 "2020-09-09T23:30:55Z")

</div>

This is what I get when I enter that URL ([http://hochl-it.at/arduino/zisterne/json.php](http://hochl-it.at/arduino/zisterne/json.php)) into a browser:

**Parse error** : syntax error, unexpected ‘{’ in **/home/ho018clu/www/home/arduino/zisterne/json.php** on line **8**

It’s not returning a valid JSON response which is why your blocks don’t work properly.

---

<div class="post-metadata">

**Author:** ![haiflosse](https://avatars.discourse-cdn.com/v4/letter/h/7993a0/32.png) [@haiflosse](https://community.thunkable.com/u/haiflosse)\
**Post date:** [September 11, 2020, 5:35pm UTC](https://community.thunkable.com/t/json-import-from-php-file/805167/4 "2020-09-11T17:35:32Z")

</div>

Thanks for your answer.  
Is it possible to remove the " when I will get for exampel a text via json like “Example” or “1.1.2000 15:30”.  
kindly regards

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [September 12, 2020, 12:37am UTC](https://community.thunkable.com/t/json-import-from-php-file/805167/5 "2020-09-12T00:37:42Z")

</div>

You can use the text replace block to replace all quote marks with nothing ("").

 ![Screen Shot 2020-09-11 at 5.36.25 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/d/1db74ccd488e57da298d4f0311ab1f922d1225b2.png)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:24pm UTC](https://community.thunkable.com/t/json-import-from-php-file/805167/6 "2024-11-08T12:24:01Z")

</div>


