# JSON list without any property

**URL:** https://community.thunkable.com/t/json-list-without-any-property/179968
**Category:** Questions about Thunkable X
**Tags:** list, webapi, json
**Created:** [August 13, 2019, 1:11pm UTC](https://community.thunkable.com/t/json-list-without-any-property/179968 "2019-08-13T13:11:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![\_GD\_ETJ](https://avatars.discourse-cdn.com/v4/letter/_/838e76/32.png) [@\_GD\_ETJ](https://community.thunkable.com/u/_GD_ETJ)
#### Post date: [August 13, 2019, 1:11pm UTC](https://community.thunkable.com/t/json-list-without-any-property/179968/1 "2019-08-13T13:11:51Z")

</div>

Hello to everyone.

I would like to get the data “URL” in this json here below.  
I have some knowledge of JSON, although in the data below, the list does not have a property/name to it.

JSON:  
[{“breeds”:[],“id”:“7pv”,“url”:“[https://cdn2.thecatapi.com/images/7pv.gif",“width”:344,"height](https://cdn2.thecatapi.com/images/7pv.gif%22,%22width%22:344,%22height)”:194}]

(i know its about cats, please dont ridicule me!)

I would like to set the URL to a variable, is this possible?

---

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [August 13, 2019, 5:07pm UTC](https://community.thunkable.com/t/json-list-without-any-property/179968/2 "2019-08-13T17:07:01Z")

</div>

Hello there,  
There are some minute errors in your given JSON.

- 
# **“** ≠ "

(u have somewhere used **"** , & somewhere **“** )  
See :

> [@\_GD\_ETJ](#):
>
> [https://cdn2.thecatapi.com/images/7pv.gif",“width”:344,\<big\>\*\*"](https://cdn2.thecatapi.com/images/7pv.gif%22,%E2%80%9Cwidth%E2%80%9D:344,%3Cbig%3E**%22)**height**“\*\*

**NOTE** - Only use **"** in JSONs.  
So, first get your JSON good to go, then do the blocks 😉

> [@\_GD\_ETJ](#):
>
> I would like to set the URL to a variable, is this possible?

Yes.  
Have a look 🙂 -

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

* * *

## #Happy Thunking! 😉 🎉

---

<div class="post-metadata">

### Author: ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)
#### Post date: [August 14, 2019, 5:58pm UTC](https://community.thunkable.com/t/json-list-without-any-property/179968/3 "2019-08-14T17:58:12Z")

</div>

@_GD_ETJ, You might think about first creating an object (which is what the ‘O’ in JSON stands for) and then generating JSON from that. So, in your example, you could have something like the following function defined to generate your JSON:

 ![18%20AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/7/87e062bcf8854a95a41c37fafaf941510e6fd88a.png)

which you could call with something like:

![11%20AM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/6/366c8edf75fff96f98754bee2c7c99952fbe1e55.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:11pm UTC](https://community.thunkable.com/t/json-list-without-any-property/179968/4 "2024-11-08T12:11:52Z")

</div>


