# \[Restored topic\] Scripture API JSON

**URL:** <https://community.thunkable.com/t/restored-topic-scripture-api-json/1903641>\
**Category:** Publishing\
**Created:** [May 31, 2022, 5:48am UTC](https://community.thunkable.com/t/restored-topic-scripture-api-json/1903641 "2022-05-31T05:48:40Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [May 31, 2022, 5:48am UTC](https://community.thunkable.com/t/restored-topic-scripture-api-json/1903641/1 "2022-05-31T05:48:40Z")

</div>

**I have to apologize to whoever posted the message below. I was editing your post to put ``` marks before and after your JSON text to fix the formatting and it deleted your entire topic. Here is the post you had made:**

I am trying to create a scripture trivia game that generates a random scripture reference and pulls the text for that scripture from an API. I have it working for a reference that includes one or two verses, but I am running into problems once I get to three or more verses. It seems like I am getting the first and last, but nothing in the middle.

Here is the json response

```auto
{
    "api": {
        "q": "Isaiah 58:6-8",
        "format": "json"
    },
    "scriptures": [
        {
            "scripture": "Isaiah 58:6",
            "book": "Isaiah",
            "chapter": 58,
            "verse": 6,
            "text": "Is not this the fast that I have chosen? to loose the bands of wickedness, to undo the heavy burdens, and to let the oppressed go free, and that ye break every yoke?"
        },
        {
            "scripture": "Isaiah 58:7",
            "book": "Isaiah",
            "chapter": 58,
            "verse": 7,
            "text": "Is it not to deal thy bread to the hungry, and that thou bring the poor that are cast out to thy house? when thou seest the naked, that thou cover him; and that thou hide not thyself from thine own flesh?"
        },
        {
            "scripture": "Isaiah 58:8",
            "book": "Isaiah",
            "chapter": 58,
            "verse": 8,
            "text": "Then shall thy light break forth as the morning, and thine health shall spring forth speedily: and thy righteousness shall go before thee; the glory of the LORD shall be thy rereward."
        }
    ]
}

```

Here is my block where I’m storing the data in a string variable

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

Here is an alternate block where I store the data in a list (with the same issue)

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

Here is an image of an app result (not the same scripture obviously, but the same principle applies) in case the context is helpful.

 ![IMG_174446208651-1](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/e/2e40012e3048015b95e17e6d1e9786b1a62c54c6.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:** [May 31, 2022, 5:49am UTC](https://community.thunkable.com/t/restored-topic-scripture-api-json/1903641/2 "2022-05-31T05:49:41Z")

</div>

@jared I will have to stop editing posts to add code (```) tags. It seems to delete the posts as soon as I save the posts. This has happened twice 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:** [May 31, 2022, 5:56am UTC](https://community.thunkable.com/t/restored-topic-scripture-api-json/1903641/3 "2022-05-31T05:56:19Z")

</div>

Using the alternate block screenshot, what happens if you replace `app variable verseLength` with the number block 3? The JSON response you posted as text only has 3 items in the list/array so I’m curious what happens if you avoid using a variable there.

The screenshot of different scripture is not helpful. Can you post the actual result you’re seeing on your screen when you substitute 3 for the variable?

---

<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:13pm UTC](https://community.thunkable.com/t/restored-topic-scripture-api-json/1903641/4 "2024-11-08T13:13:15Z")

</div>


