# JSON Tools Extension by LukeGackle

**URL:** <https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798>\
**Category:** Questions about Thunkable X\
**Created:** [June 22, 2021, 9:33am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798 "2021-06-22T09:33:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rootroot511tm1o4](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rootroot511tm1o4](https://community.thunkable.com/u/rootroot511tm1o4)\
**Post date:** [June 22, 2021, 9:33am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/1 "2021-06-22T09:33:17Z")

</div>

Hi everybody need help with JSON  
I’m new, please help me  
I have this answer

{  
“jsonrpc”: “2.0”,  
“result”: [  
{  
“hostid”: “10402”,  
“proxy\_hostid”: “0”,  
“host”: “AE3649PA”,  
“status”: “0”,  
“disable\_until”: “0”,  
“error”: “”,  
“available”: “1”,  
“errors\_from”: “0”,  
“lastaccess”: “0”,  
“ipmi\_authtype”: “-1”,  
“ipmi\_privilege”: “2”,  
“ipmi\_username”: “”,  
“ipmi\_password”: “”,  
“ipmi\_disable\_until”: “0”,  
“ipmi\_available”: “0”,  
“snmp\_disable\_until”: “0”,  
“snmp\_available”: “0”,  
“maintenanceid”: “0”,  
“maintenance\_status”: “0”,  
“maintenance\_type”: “0”,  
“maintenance\_from”: “0”,  
“ipmi\_errors\_from”: “0”,  
“snmp\_errors\_from”: “0”,  
“ipmi\_error”: “”,  
“snmp\_error”: “”,  
“jmx\_disable\_until”: “0”,  
“jmx\_available”: “0”,  
“jmx\_errors\_from”: “0”,  
“jmx\_error”: “”,  
“name”: “AE3649PA”,  
“flags”: “0”,  
“templateid”: “0”,  
“description”: “”,  
“tls\_connect”: “1”,  
“tls\_accept”: “1”,  
“tls\_issuer”: “”,  
“tls\_subject”: “”,  
“tls\_psk\_identity”: “”,  
“tls\_psk”: “”,  
“proxy\_address”: “”,  
“auto\_compress”: “1”,  
“discover”: “0”,  
“inventory\_mode”: “1”  
}  
],  
“id”: 1  
}

JSON Tools Extension by LukeGackle

> **[JSONTools Extension](https://thunkableblocks.blogspot.com/2017/07/jsontools-extension.html)**
>
> Learn about tricks you can use to create advanced mobile applications in Thunkable and App Inventor. Gain access to free extensions and more.

Get “hostid”?

---

<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:** [June 22, 2021, 9:51am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/2 "2021-06-22T09:51:08Z")

</div>

To work with JSON, you need to refer to the tutorials in the community and other source.

I took your JSON text and assigned it to a variable in the app then I convert the JSON text to an object.

I then extracted the **hostid** from the `object` using object components and `list` components because your JSON has a list inside the object.

This is the outcome  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/3/b3862406e5d643beb66a8a3477d71681a324b13e.png)

This is the code I used

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/0/7048648272f01d78bd8206775e1aad3a7b2761b2.png)

I also changed the category of you post from `Made with Thunkable` to `Thunkable Discuss`

---

<div class="post-metadata">

**Author:** ![rootroot511tm1o4](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rootroot511tm1o4](https://community.thunkable.com/u/rootroot511tm1o4)\
**Post date:** [June 22, 2021, 10:14am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/3 "2021-06-22T10:14:52Z")

</div>

Thanks for the help. But I do not understand  
Here is my code

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/577f9d2c89b880a7b5bd399ee688cc977e56ad61.png)

---

<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:** [June 22, 2021, 10:20am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/4 "2021-06-22T10:20:12Z")

</div>

This is not Thunkable X.

---

<div class="post-metadata">

**Author:** ![rootroot511tm1o4](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rootroot511tm1o4](https://community.thunkable.com/u/rootroot511tm1o4)\
**Post date:** [June 22, 2021, 10:28am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/5 "2021-06-22T10:28:52Z")

</div>

The fact is that I don’t get the code like this

Through Postman, I get the following text

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/d/cd706f8c734c8b31630be17ee44c71a568143dc0.png)

In App Inventor, this is the code

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

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/c/6cf4b5209fba3931ed0554bffdffbe03399bb1b6.png)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [June 22, 2021, 10:32am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/6 "2021-06-22T10:32:49Z")

</div>

This is a thunkable forum, not app inventor. You are spamming the forum. Please do not post here.

---

<div class="post-metadata">

**Author:** ![rootroot511tm1o4](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@rootroot511tm1o4](https://community.thunkable.com/u/rootroot511tm1o4)\
**Post date:** [June 22, 2021, 10:33am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/7 "2021-06-22T10:33:51Z")

</div>

I kind of talk on the topic

---

<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:** [June 22, 2021, 10:34am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/8 "2021-06-22T10:34:05Z")

</div>

I used your text that you shared and provided you with Thunkable X blocks that works. I even shared the screen display.

Of course, if you use it through a Web API you will get the green `response` block and convert it to object and then extract the “hostid” from it which is the same steps I showed.

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [June 22, 2021, 10:35am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/9 "2021-06-22T10:35:04Z")

</div>

Yes, but you should post questions that you have when using app inventor in the app inventor forum.

---

<div class="post-metadata">

**Author:** ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)\
**Post date:** [June 22, 2021, 10:37am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/11 "2021-06-22T10:37:06Z")

</div>

WHAT!  
Please do NOT talk like that.  
this is not the way we talk here.  
Here is a link of the rules please Read Them.  
[https://community.thunkable.com/guidelines](https://community.thunkable.com/guidelines)

---

<div class="post-metadata">

**Author:** ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)\
**Post date:** [June 22, 2021, 10:38am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/12 "2021-06-22T10:38:08Z")

</div>

Moderators, I’ve flagged that post. Could you please delete it from your end?

---

<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:** [June 22, 2021, 10:41am UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/13 "2021-06-22T10:41:48Z")

</div>

This is rude and should be removed.

---

<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:** [June 22, 2021, 1:42pm UTC](https://community.thunkable.com/t/json-tools-extension-by-lukegackle/1357798/14 "2021-06-22T13:42:30Z")

</div>


