# WebAPI troubles, it can't show my JSON

**URL:** https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490
**Category:** Questions about Thunkable X
**Tags:** beginner, webapi
**Created:** [October 17, 2021, 3:16pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490 "2021-10-17T15:16:05Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![kevin964444eu2ayd](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kevin964444eu2ayd](https://community.thunkable.com/u/kevin964444eu2ayd)
#### Post date: [October 17, 2021, 3:16pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/1 "2021-10-17T15:16:06Z")

</div>

This is my JSON below:

[{“Id”:1,“Machinename”:“CNC”,“Temperature”:“120”,“Operating\_Time”:“2’20”,“Designed\_RPM”:“240”,“Current\_RPM”:“200”,“X”:“20”,“Y”:“15”,“Z”:“12”}]

I use C# to make it and the URL is “https://localhost:44XXX” or “https://192.168.X.X:44XXX”.

This is my blocks in my project:

 ![789](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/53452e710f4f8ec80f14a2bf2a33d74b34472586.jpeg)

I want to know why the information from JSON can’t show in my app.

---

<div class="post-metadata">

### Author: ![kevin964444eu2ayd](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kevin964444eu2ayd](https://community.thunkable.com/u/kevin964444eu2ayd)
#### Post date: [October 17, 2021, 3:23pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/2 "2021-10-17T15:23:56Z")

</div>

I try every way which I know to {get property} like:

[1].Machinename  
Id  
CNC.Designed\_RPM(because my URL is:https://localhost:44XXX/XXX/CNC)

But none of them is worked.

---

<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: [October 17, 2021, 3:59pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/4 "2021-10-17T15:59:25Z")

</div>

It’s not valid JSON the way it’s written above. Your quotes are special characters. If I replace them with standard quotes ("), then it is valid JSON. That may not be why you’re having problems but it did prevent me from understanding the issue at first.

Once I replaced the quotes, the parsing blocks you used above worked properly (e.g. [1].Machinename returned “CNC”).

Are you checking the green `error` block value to make sure you’re not getting an error?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 17, 2021, 4:19pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/5 "2021-10-17T16:19:56Z")

</div>

> [@tatiang](#):
>
> Your quotes are special characters

The Discord forum app is the one replacing normal quotes with special quotes. Authors need to include quoted strings in \</\> (back ticks) to prevent the forum app from replacing them.

---

<div class="post-metadata">

### Author: ![kevin964444eu2ayd](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kevin964444eu2ayd](https://community.thunkable.com/u/kevin964444eu2ayd)
#### Post date: [October 19, 2021, 6:18am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/6 "2021-10-19T06:18:36Z")

</div>

the error block is “null” just like response

and the quote is my typing mistake, this is the screenshot of my JSON below:

 ![1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/1/81c2a85a90fb47cec361694981540b249bf137f3.jpeg)

---

<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: [October 19, 2021, 6:47am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/7 "2021-10-19T06:47:43Z")

</div>

If I replace all of the quotes in your first post with normal quotes ("), these blocks return the value “CNC”:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/8/080d0c81118a1030d7dc979d2c653182a1db096c.png)

If I do not replace the quotes, I get the value “null”.

Here’s a link to the project: [Thunkable](https://x.thunkable.com/copy/3349235a3ce84bd5b11f76d3dd716395)

---

<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: [October 19, 2021, 6:50am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/8 "2021-10-19T06:50:16Z")

</div>

Are you testing this on a mobile device? If so, are you able to ping https://192.168.X.X:44XXX from that device? I wonder if your device can’t reach the server.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 19, 2021, 6:53am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/9 "2021-10-19T06:53:44Z")

</div>

> [@tatiang](#):
>
> If I replace all of the quotes in your first post with normal quotes ("), these blocks return the value “CNC”:

@kevin964444eu2ayd  
I got the same results with this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/a/5a23c557beebe3bb9c7de79de5b8fe26ad463bb4.png)  
Which is a slightly different way but gives the same result.

---

<div class="post-metadata">

### Author: ![kevin964444eu2ayd](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kevin964444eu2ayd](https://community.thunkable.com/u/kevin964444eu2ayd)
#### Post date: [October 19, 2021, 7:07am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/10 "2021-10-19T07:07:18Z")

</div>

@tatiang @muneer  
the value in JSON need to change all the time, if I want to change it in variables, I need to make it happen in person.

Is there any solution to get the data by using WebAPI block(the purple one)?

@tatiang Yes, It’s a app for mobile. My mobile can get the server. It takes me lots of time to fix it and it works now. I can open the JSON by google chrome.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 19, 2021, 7:15am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/11 "2021-10-19T07:15:16Z")

</div>

> [@kevin964444eu2ayd](#):
>
> the value in JSON need to change all the time, if I want to change it in variables

Can you elaborate?  
Give an example of what you mean. Do you mean the keys (“id”, “Machinename”,…) keep changing? Or do you mean you might have a list of more than one item?

---

<div class="post-metadata">

### Author: ![kevin964444eu2ayd](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kevin964444eu2ayd](https://community.thunkable.com/u/kevin964444eu2ayd)
#### Post date: [October 19, 2021, 7:35am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/12 "2021-10-19T07:35:42Z")

</div>

I use C# to get the CNC’s data. The number in my JSON like “RPM,X,Y,Z” will change with the operating machine.  
I haven’t finish this part but I think the Web\_API may work. This is why I need the Web\_API/Get/response to do it.

I think the main problem is that “my Web\_API’s response/status/error all are null now”.

---

<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: [October 19, 2021, 2:27pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/13 "2021-10-19T14:27:47Z")

</div>

It’s fine if the API property values change. We’ve shown you the correct blocks to use for the JSON response you are getting.

So if you are still getting “null” responses then there is a problem with your server or server address. I don’t know how to help you with that.

If you had a way to serve the data externally and could provide a url we could access, we could test this further for you.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 19, 2021, 3:11pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/14 "2021-10-19T15:11:37Z")

</div>

> [@kevin964444eu2ayd](#):
>
> I think the main problem is that “my Web\_API’s response/status/error all are null now”.

Can you explain where you are getting it from? Are you testing from Thunkable platform in the computer or from the mobile?

As far as I know you will **not** be able to reach your **internal/local** JSON server from the computer but you will be able to reach it from the mobile.

Also, most probably you do not have a security server/service running internally so you should use **http://** not **htpps://**.

---

<div class="post-metadata">

### Author: ![kevin964444eu2ayd](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kevin964444eu2ayd](https://community.thunkable.com/u/kevin964444eu2ayd)
#### Post date: [October 20, 2021, 3:22am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/15 "2021-10-20T03:22:20Z")

</div>

> [@muneer](#):
>
> Are you testing from Thunkable platform in the computer or from the mobile?

I try it both. Both of them didn’t work.  
I’ve tried the **http://** before, I didn’t get the response as well.

> [@muneer](#):
>
> As far as I know you will **not** be able to reach your **internal/local** JSON server from the computer but you will be able to reach it from the mobile.

I can open the url by Google Chrome in computer and from the mobile. Does it mean that I can reach the server?

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 20, 2021, 10:56am UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/16 "2021-10-20T10:56:00Z")

</div>

> [@kevin964444eu2ayd](#):
>
> I can open the url by Google Chrome in computer and from the mobile. Does it mean that I can reach the server?

When you click `preview button` or `Live Test` menu option, Thunkable web page opens a **Modal** page which is, most probably, an iFrame or an AJAX xmlHTTP component which will try to connect to your local server from the Thunkable server and therefore it fails.

Your only option is to test using the `Thunkable Live App` in your phone which will use your phone’s connection to reach your server.

---

<div class="post-metadata">

### Author: ![kevin964444eu2ayd](https://avatars.discourse-cdn.com/v4/letter/k/df705f/32.png) [@kevin964444eu2ayd](https://community.thunkable.com/u/kevin964444eu2ayd)
#### Post date: [October 20, 2021, 4:55pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/17 "2021-10-20T16:55:56Z")

</div>

@muneer @tatiang  
Thanks for your helping me! You guys are so kind that I feel so grateful to you.  
l’ve already solve this problem. It takes me to much time to understand and fix it.

Hope you guys having a great day.

---

<div class="post-metadata">

### Author: ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)
#### Post date: [October 20, 2021, 4:59pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/18 "2021-10-20T16:59:14Z")

</div>

Glad to know you fixed your issue.

Happy Thunking!

---

<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, 1:14pm UTC](https://community.thunkable.com/t/webapi-troubles-it-cant-show-my-json/1566490/19 "2024-11-08T13:14:50Z")

</div>


